feat(updater): Added exceptions logging (#2026)

* feat(updater): Added exceptions logging

* refactor(updater): Use `sha256` hash if available
This commit is contained in:
Roman Kelesidis 2025-07-02 10:16:54 +03:00 committed by GitHub
commit 57d0d59b53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 120 additions and 60 deletions

View file

@ -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)) {