mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
feat(updater): Added exceptions logging (#2026)
* feat(updater): Added exceptions logging * refactor(updater): Use `sha256` hash if available
This commit is contained in:
parent
76b191ff41
commit
57d0d59b53
6 changed files with 120 additions and 60 deletions
|
@ -2229,10 +2229,10 @@ function infoByIP(string $ipAddress, int $port = 0): array
|
|||
];
|
||||
}
|
||||
} else {
|
||||
bb_log("[FreeIPAPI] Failed to get IP info for: $ipAddress");
|
||||
bb_log("[FreeIPAPI] Failed to get IP info for: $ipAddress" . LOG_LF);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
bb_log("[FreeIPAPI] " . $e->getMessage());
|
||||
bb_log("[FreeIPAPI] " . $e->getMessage() . LOG_LF);
|
||||
}
|
||||
|
||||
if (empty($data)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue