use of loge

This commit is contained in:
2022-07-14 18:39:06 +02:00
parent 9ce1f4a1a8
commit ddbba7399d
5 changed files with 8 additions and 8 deletions

View File

@@ -62,7 +62,7 @@ bool World::LoadMap(const protocol::WorldDataPacket* worldData) {
bool World::LoadMapFromFile(const std::string& fileName) {
DataBuffer buffer;
if (!buffer.ReadFile(fileName)) {
utils::LOG(utils::format("[ERROR] : Failed to load map from file %s", fileName.c_str()));
utils::LOGE(utils::format("Failed to load map from file %s", fileName.c_str()));
return false;
}

View File

@@ -11,7 +11,7 @@ bool Client::Connect(const network::IPAddresses& addresses, std::uint16_t port)
return true;
}
}
utils::LOG("Failed to connect !");
utils::LOGE("Failed to connect !");
return false;
}

View File

@@ -45,11 +45,11 @@ void Server::StopThread() {
bool Server::Start(std::uint16_t port) {
if (!m_Listener.Listen(port, 10)) {
utils::LOG(utils::format("Failed to bind port %u !", port));
utils::LOGE(utils::format("Failed to bind port %u !", port));
return false;
}
if (!m_Listener.SetBlocking(false)) {
utils::LOG("Failed to block server socket !");
utils::LOGE("Failed to block server socket !");
return false;
}
utils::LOG(utils::format("Server started at port %u !", port));

View File

@@ -126,9 +126,9 @@ unsigned int ShaderProgram::LoadShader(const std::string& source, GLenum type) {
std::vector<char> shaderError(static_cast<std::size_t>(size));
glGetShaderInfoLog(shaderID, size, &size, shaderError.data());
utils::LOG("Could not compile shader !");
utils::LOGE("Could not compile shader !");
utils::LOG(shaderError.data());
utils::LOGE(shaderError.data());
}
return shaderID;
}

View File

@@ -34,7 +34,7 @@ bool Updater::CheckUpdate() {
}
return false;
} else {
utils::LOG(utils::format("Error : %u", res.error()));
utils::LOGE(utils::format("Error code : %u", res.error()));
return false;
}