using log calls

This commit is contained in:
2022-07-14 18:32:32 +02:00
parent 66376eaeda
commit d6fbb58da8
8 changed files with 39 additions and 38 deletions

View File

@@ -2,6 +2,8 @@
#include "misc/Platform.h"
#include "misc/DataBuffer.h"
#include "misc/Log.h"
#include "misc/Format.h"
#include "network/HttpLib.h"
@@ -24,15 +26,15 @@ bool Updater::CheckUpdate() {
// we only look at the first line
m_LastVersion = m_LastVersion.substr(0, m_LastVersion.find('\n'));
std::cout << "Current version : [" << GetCurrentVersion() << "]\n";
std::cout << "Last version : [" << m_LastVersion << "]\n";
utils::LOG(utils::format("Current version : [%s]", GetCurrentVersion().c_str()));
utils::LOG(utils::format("Last version : [%s]", m_LastVersion.c_str()));
if (currentVersion != m_LastVersion) {
return true;
}
return false;
} else {
std::cerr << "Error : " << res.error() << std::endl;
utils::LOG(utils::format("Error : %u", res.error()));
return false;
}