use of loge
This commit is contained in:
@@ -62,7 +62,7 @@ bool World::LoadMap(const protocol::WorldDataPacket* worldData) {
|
|||||||
bool World::LoadMapFromFile(const std::string& fileName) {
|
bool World::LoadMapFromFile(const std::string& fileName) {
|
||||||
DataBuffer buffer;
|
DataBuffer buffer;
|
||||||
if (!buffer.ReadFile(fileName)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ bool Client::Connect(const network::IPAddresses& addresses, std::uint16_t port)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
utils::LOG("Failed to connect !");
|
utils::LOGE("Failed to connect !");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,11 +45,11 @@ void Server::StopThread() {
|
|||||||
|
|
||||||
bool Server::Start(std::uint16_t port) {
|
bool Server::Start(std::uint16_t port) {
|
||||||
if (!m_Listener.Listen(port, 10)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
if (!m_Listener.SetBlocking(false)) {
|
if (!m_Listener.SetBlocking(false)) {
|
||||||
utils::LOG("Failed to block server socket !");
|
utils::LOGE("Failed to block server socket !");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
utils::LOG(utils::format("Server started at port %u !", port));
|
utils::LOG(utils::format("Server started at port %u !", port));
|
||||||
|
|||||||
@@ -126,9 +126,9 @@ unsigned int ShaderProgram::LoadShader(const std::string& source, GLenum type) {
|
|||||||
std::vector<char> shaderError(static_cast<std::size_t>(size));
|
std::vector<char> shaderError(static_cast<std::size_t>(size));
|
||||||
glGetShaderInfoLog(shaderID, size, &size, shaderError.data());
|
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;
|
return shaderID;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ bool Updater::CheckUpdate() {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
utils::LOG(utils::format("Error : %u", res.error()));
|
utils::LOGE(utils::format("Error code : %u", res.error()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user