From df84bcf3bf85ca719883410dfe082d15f5383aa0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 27 Dec 2013 07:13:49 -0800 Subject: [PATCH] Some logging improvements in software updater. --- node/SoftwareUpdater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/SoftwareUpdater.cpp b/node/SoftwareUpdater.cpp index c515d5db9..6eb39fee3 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; } }