diff --git a/src/scriptengine/script_engine.cpp b/src/scriptengine/script_engine.cpp index cf4910419..8713278ce 100644 --- a/src/scriptengine/script_engine.cpp +++ b/src/scriptengine/script_engine.cpp @@ -101,7 +101,9 @@ namespace Scripting std::string script_file = FileUtils::getPortableReadingPath(script_path); if (!file_manager->fileExists(script_file)) { +#ifndef SERVER_ONLY Log::debug("Scripting", "File does not exist : %s", script_path.c_str()); +#endif return ""; } @@ -364,10 +366,12 @@ namespace Scripting if (module == NULL) { +#ifndef SERVER_ONLY if (warn_if_not_found) Log::warn("Scripting", "Scripting function was not found : %s (module not found)", function_name.c_str()); else 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 return; } @@ -376,10 +380,12 @@ namespace Scripting if (func == NULL) { +#ifndef SERVER_ONLY if (warn_if_not_found) Log::warn("Scripting", "Scripting function was not found : %s", function_name.c_str()); else 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 return; } diff --git a/src/tracks/graph.cpp b/src/tracks/graph.cpp index e39816598..2db4192c1 100644 --- a/src/tracks/graph.cpp +++ b/src/tracks/graph.cpp @@ -572,8 +572,10 @@ void Graph::createQuad(const Vec3 &p0, const Vec3 &p1, const Vec3 &p2, } else { +#ifndef SERVER_ONLY Log::debug("Graph", "2d node created, normal: %f, %f, %f", normal.x(), normal.y(), normal.z()); +#endif if (is_arena) { q = new ArenaNode(p0, p1, p2, p3, normal, node_index); diff --git a/src/tracks/track_object.cpp b/src/tracks/track_object.cpp index dc0ea1fc8..d7252dfcd 100644 --- a/src/tracks/track_object.cpp +++ b/src/tracks/track_object.cpp @@ -379,7 +379,9 @@ void TrackObject::init(const XMLNode &xml_node, scene::ISceneNode* parent, } catch (std::exception& e) { +#ifndef SERVER_ONLY Log::debug("TrackObject", e.what()); +#endif } }