Quellcode durchsuchen

UI: Use blog for "Attempted path" log messages

These use printf for some reason. Instead of always printing them and
having them clutter the log, blog them with debug level. They don't
appear in log files anyway.
tt2468 vor 3 Jahren
Ursprung
Commit
e141def61b
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      UI/platform-windows.cpp
  2. 1 1
      UI/platform-x11.cpp

+ 1 - 1
UI/platform-windows.cpp

@@ -46,7 +46,7 @@ static inline bool check_path(const char *data, const char *path,
 	str << path << data;
 	output = str.str();
 
-	printf("Attempted path: %s\n", output.c_str());
+	blog(LOG_DEBUG, "Attempted path: %s", output.c_str());
 
 	return os_file_exists(output.c_str());
 }

+ 1 - 1
UI/platform-x11.cpp

@@ -178,7 +178,7 @@ static inline bool check_path(const char *data, const char *path,
 	str << path << data;
 	output = str.str();
 
-	printf("Attempted path: %s\n", output.c_str());
+	blog(LOG_DEBUG, "Attempted path: %s", output.c_str());
 
 	return (access(output.c_str(), R_OK) == 0);
 }