diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-27 07:13:49 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-27 07:13:49 -0800 |
commit | df84bcf3bf85ca719883410dfe082d15f5383aa0 (patch) | |
tree | 9e0e40ad343daf3b8f8af38fa8577e7569bd23f8 | |
parent | c8166b2db15b692d2c3deba2b7b82343ba478873 (diff) | |
download | infinitytier-df84bcf3bf85ca719883410dfe082d15f5383aa0.tar.gz infinitytier-df84bcf3bf85ca719883410dfe082d15f5383aa0.zip |
Some logging improvements in software updater.
-rw-r--r-- | node/SoftwareUpdater.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/SoftwareUpdater.cpp b/node/SoftwareUpdater.cpp index c515d5db..6eb39fee 100644 --- a/node/SoftwareUpdater.cpp +++ b/node/SoftwareUpdater.cpp @@ -84,7 +84,7 @@ void SoftwareUpdater::_cbHandleGetLatestVersionInfo(void *arg,int code,const std } if (code != 200) { - LOG("unable to check for software updates, response code %d (%s)",code,body.c_str()); + LOG("software update check failed: server responded %d (%s)",code,body.c_str()); upd->_status = UPDATE_STATUS_IDLE; return; } @@ -99,7 +99,7 @@ void SoftwareUpdater::_cbHandleGetLatestVersionInfo(void *arg,int code,const std const std::string &url = nfo.get("url"); if (signature.length() != ZT_C25519_SIGNATURE_LEN) { - LOG("software update aborted: .nfo file invalid: bad Ed25519 signature"); + LOG("software update aborted: .nfo file invalid: bad ed25519 ECC signature field"); upd->_status = UPDATE_STATUS_IDLE; return; } @@ -126,7 +126,7 @@ void SoftwareUpdater::_cbHandleGetLatestVersionInfo(void *arg,int code,const std HttpClient::GET(url,HttpClient::NO_HEADERS,ZT_UPDATE_HTTP_TIMEOUT,&_cbHandleGetLatestVersionBinary,arg); } catch ( ... ) { - LOG("software update check failed: .nfo file invalid: fields missing or invalid dictionary format"); + LOG("software update check failed: .nfo file invalid or missing field(s)"); upd->_status = UPDATE_STATUS_IDLE; } } |