Browse Source

💬 Refine logging messages as suggested by reviewer @celeron533.

pull/2909/head
database64128 5 years ago
parent
commit
b3e15fc645
No known key found for this signature in database GPG Key ID: 1CA27546BEDB8B01
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      shadowsocks-csharp/Controller/Service/GeositeUpdater.cs

+ 3
- 3
shadowsocks-csharp/Controller/Service/GeositeUpdater.cs View File

@@ -122,7 +122,7 @@ namespace Shadowsocks.Controller
// if already latest // if already latest
if (geositeSha256sum == localDBHash) if (geositeSha256sum == localDBHash)
{ {
logger.Info("Local GeoSite DB is already the latest.");
logger.Info("Local GeoSite DB is up to date.");
return; return;
} }


@@ -135,12 +135,12 @@ namespace Shadowsocks.Controller
logger.Info($"Actual Sha256sum: {downloadedDBHash}"); logger.Info($"Actual Sha256sum: {downloadedDBHash}");
if (geositeSha256sum != downloadedDBHash) if (geositeSha256sum != downloadedDBHash)
{ {
logger.Info("Sha256sum mismatch. Updating aborted.");
logger.Info("Sha256sum Verification: FAILED. Downloaded GeoSite DB is corrupted. Aborting the update.");
throw new Exception("Sha256sum mismatch"); throw new Exception("Sha256sum mismatch");
} }
else else
{ {
logger.Info("Sha256sum verification successful.");
logger.Info("Sha256sum Verification: PASSED. Applying to local GeoSite DB.");
} }


// write to geosite file // write to geosite file


Loading…
Cancel
Save