mail[Wesnoth-commits] r33585 - in /trunk/src: filesystem.cpp unit_types.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by soliton . de on March 13, 2009 - 01:28:
Author: soliton
Date: Fri Mar 13 01:28:36 2009
New Revision: 33585

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33585&view=rev
Log:
downgrade some noisy log messages to debug level

Modified:
    trunk/src/filesystem.cpp
    trunk/src/unit_types.cpp

Modified: trunk/src/filesystem.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/filesystem.cpp?rev=33585&r1=33584&r2=33585&view=diff
==============================================================================
--- trunk/src/filesystem.cpp (original)
+++ trunk/src/filesystem.cpp Fri Mar 13 01:28:36 2009
@@ -989,7 +989,7 @@
 
 std::string get_binary_file_location(const std::string& type, const 
std::string& filename)
 {
-       LOG_FS << "Looking for '" << filename << "'.\n";
+       DBG_FS << "Looking for '" << filename << "'.\n";
 
        if (filename.empty()) {
                LOG_FS << "  invalid filename (type: " << type <<")\n";
@@ -1015,18 +1015,18 @@
                const std::string file = path + filename;
                DBG_FS << "  checking '" << path << "'\n";
                if(file_exists(file)) {
-                       LOG_FS << "  found at '" << file << "'\n";
+                       DBG_FS << "  found at '" << file << "'\n";
                        return file;
                }
        }
 
-       LOG_FS << "  not found\n";
+       DBG_FS << "  not found\n";
        return std::string();
 }
 
 std::string get_binary_dir_location(const std::string &type, const 
std::string &filename)
 {
-       LOG_FS << "Looking for '" << filename << "'.\n";
+       DBG_FS << "Looking for '" << filename << "'.\n";
 
        if (filename.empty()) {
                LOG_FS << "  invalid filename (type: " << type <<")\n";
@@ -1043,18 +1043,18 @@
                const std::string file = path + filename;
                DBG_FS << "  checking '" << path << "'\n";
                if (is_directory(file)) {
-                       LOG_FS << "  found at '" << file << "'\n";
+                       DBG_FS << "  found at '" << file << "'\n";
                        return file;
                }
        }
 
-       LOG_FS << "  not found\n";
+       DBG_FS << "  not found\n";
        return std::string();
 }
 
 std::string get_wml_location(const std::string &filename, const std::string 
&current_dir)
 {
-       LOG_FS << "Looking for '" << filename << "'.\n";
+       DBG_FS << "Looking for '" << filename << "'.\n";
 
        std::string result;
 
@@ -1096,11 +1096,11 @@
        if (result.empty() ||
            (!already_found && !file_exists(result) && !is_directory(result)))
        {
-               LOG_FS << "  not found\n";
+               DBG_FS << "  not found\n";
                result.clear();
        }
        else
-               LOG_FS << "  found: '" << result << "'\n";
+               DBG_FS << "  found: '" << result << "'\n";
 
        return result;
 }

Modified: trunk/src/unit_types.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_types.cpp?rev=33585&r1=33584&r2=33585&view=diff
==============================================================================
--- trunk/src/unit_types.cpp (original)
+++ trunk/src/unit_types.cpp Fri Mar 13 01:28:36 2009
@@ -28,8 +28,9 @@
 
 
 #define ERR_CONFIG LOG_STREAM(err, config)
-#define LOG_CONFIG LOG_STREAM(info,config)
-#define WRN_CONFIG LOG_STREAM(warn,config)
+#define WRN_CONFIG LOG_STREAM(warn, config)
+#define LOG_CONFIG LOG_STREAM(info, config)
+#define DBG_CONFIG LOG_STREAM(debug, config)
 #define DBG_UT LOG_STREAM(debug, engine)
 #define LOG_UT LOG_STREAM(info, engine)
 #define ERR_UT LOG_STREAM(err, engine)
@@ -1223,7 +1224,7 @@
 
     unit_type_map::iterator itor = types_.find(key);
 
-    LOG_CONFIG << "trying to find " << key  << " in unit_type list 
(unit_type_data.unit_types)\n";
+    DBG_CONFIG << "trying to find " << key  << " in unit_type list 
(unit_type_data.unit_types)\n";
 
     //This might happen if units of another era are requested (for example 
for savegames)
     if (itor == types_.end()){




Related Messages


Powered by MHonArc, Updated Fri Mar 13 01:40:27 2009