using log calls
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user