Don't spam in server logs
This commit is contained in:
parent
914f1a6a77
commit
e6464fff9e
@ -101,7 +101,9 @@ namespace Scripting
|
|||||||
std::string script_file = FileUtils::getPortableReadingPath(script_path);
|
std::string script_file = FileUtils::getPortableReadingPath(script_path);
|
||||||
if (!file_manager->fileExists(script_file))
|
if (!file_manager->fileExists(script_file))
|
||||||
{
|
{
|
||||||
|
#ifndef SERVER_ONLY
|
||||||
Log::debug("Scripting", "File does not exist : %s", script_path.c_str());
|
Log::debug("Scripting", "File does not exist : %s", script_path.c_str());
|
||||||
|
#endif
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -364,10 +366,12 @@ namespace Scripting
|
|||||||
|
|
||||||
if (module == NULL)
|
if (module == NULL)
|
||||||
{
|
{
|
||||||
|
#ifndef SERVER_ONLY
|
||||||
if (warn_if_not_found)
|
if (warn_if_not_found)
|
||||||
Log::warn("Scripting", "Scripting function was not found : %s (module not found)", function_name.c_str());
|
Log::warn("Scripting", "Scripting function was not found : %s (module not found)", function_name.c_str());
|
||||||
else
|
else
|
||||||
Log::debug("Scripting", "Scripting function was not found : %s (module not found)", function_name.c_str());
|
Log::debug("Scripting", "Scripting function was not found : %s (module not found)", function_name.c_str());
|
||||||
|
#endif
|
||||||
m_functions_cache[function_name] = NULL; // remember that this function is unavailable
|
m_functions_cache[function_name] = NULL; // remember that this function is unavailable
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -376,10 +380,12 @@ namespace Scripting
|
|||||||
|
|
||||||
if (func == NULL)
|
if (func == NULL)
|
||||||
{
|
{
|
||||||
|
#ifndef SERVER_ONLY
|
||||||
if (warn_if_not_found)
|
if (warn_if_not_found)
|
||||||
Log::warn("Scripting", "Scripting function was not found : %s", function_name.c_str());
|
Log::warn("Scripting", "Scripting function was not found : %s", function_name.c_str());
|
||||||
else
|
else
|
||||||
Log::debug("Scripting", "Scripting function was not found : %s", function_name.c_str());
|
Log::debug("Scripting", "Scripting function was not found : %s", function_name.c_str());
|
||||||
|
#endif
|
||||||
m_functions_cache[function_name] = NULL; // remember that this function is unavailable
|
m_functions_cache[function_name] = NULL; // remember that this function is unavailable
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -572,8 +572,10 @@ void Graph::createQuad(const Vec3 &p0, const Vec3 &p1, const Vec3 &p2,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifndef SERVER_ONLY
|
||||||
Log::debug("Graph", "2d node created, normal: %f, %f, %f",
|
Log::debug("Graph", "2d node created, normal: %f, %f, %f",
|
||||||
normal.x(), normal.y(), normal.z());
|
normal.x(), normal.y(), normal.z());
|
||||||
|
#endif
|
||||||
if (is_arena)
|
if (is_arena)
|
||||||
{
|
{
|
||||||
q = new ArenaNode(p0, p1, p2, p3, normal, node_index);
|
q = new ArenaNode(p0, p1, p2, p3, normal, node_index);
|
||||||
|
@ -379,7 +379,9 @@ void TrackObject::init(const XMLNode &xml_node, scene::ISceneNode* parent,
|
|||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
|
#ifndef SERVER_ONLY
|
||||||
Log::debug("TrackObject", e.what());
|
Log::debug("TrackObject", e.what());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user