[tracker/collation] libtracker-data: Removed PRINT_INSTEAD_OF_LOG as TRACKER_VERBOSITY envvar already does it properly



commit 1c9658eed3f3acce8ca16cf197e199509296e9be
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Wed Sep 1 12:35:12 2010 +0200

    libtracker-data: Removed PRINT_INSTEAD_OF_LOG as TRACKER_VERBOSITY envvar already does it properly

 src/libtracker-data/tracker-collation.c |   24 ++----------------------
 1 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/src/libtracker-data/tracker-collation.c b/src/libtracker-data/tracker-collation.c
index b3e112e..ecde014 100644
--- a/src/libtracker-data/tracker-collation.c
+++ b/src/libtracker-data/tracker-collation.c
@@ -23,26 +23,6 @@
 
 #include "tracker-collation.h"
 
-/* If defined, will dump some additional logs as prints,
- * instead of debugs. Why would you want to do so? Well,
- * using direct-access reading with tracker-sparql, I
- * don't want logs, I want output to stdout.
- */
-#ifdef PRINT_INSTEADOF_LOG
-#undef g_debug
-#define g_debug(message, ...) \
-	g_print ("(debug) %s:%d: " message "\n", \
-	         __FILE__, __LINE__, ##__VA_ARGS__)
-#undef g_warning
-#define g_warning(message, ...) \
-	g_print ("(warning) %s:%d: " message "\n", \
-	         __FILE__, __LINE__, ##__VA_ARGS__)
-#undef g_critical
-#define g_critical(message, ...) \
-	g_print ("(critical) %s:%d: " message "\n", \
-	         __FILE__, __LINE__, ##__VA_ARGS__)
-#endif /* PRINT_INSTEADOF_LOG */
-
 /* If defined, will dump additional traces */
 #ifdef ENABLE_TRACE
 #define trace(message, ...) \
@@ -121,13 +101,13 @@ tracker_collation_init (void)
 	collator = ucol_open (locale, &status);
 	if (!collator) {
 		g_warning ("[ICU collation] Collator for locale '%s' cannot be created: %s",
-		               locale, u_errorName (status));
+		           locale, u_errorName (status));
 		/* Try to get UCA collator then... */
 		status = U_ZERO_ERROR;
 		collator = ucol_open ("root", &status);
 		if (!collator) {
 			g_critical ("[ICU collation] UCA Collator cannot be created: %s",
-			                u_errorName (status));
+			            u_errorName (status));
 		}
 	}
 	return collator;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]