[tracker-miners/sam/tracker-index-gwarning] cli: Use g_warning() instead of g_print() for error




commit 923c6ee2dcc0cf598ba4a8b6cb22dc56d6d134f5
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Jun 16 14:41:37 2021 +0200

    cli: Use g_warning() instead of g_print() for error
    
    Output before:
    
        Path                                                                                                  
                                         Recursive
        /home/pi/Desktop                                                                                      
                                         *
        Could not expand XDG user directory &DOCUMENTSCould not expand XDG user directory &MUSICCould not 
expand XDG user directory &PICTURESCould not expand XDG user directory &VIDEOS/home/pi                        
                                                                                                              
 -
    
    Output after:
    
        Path                                                                                                  
                                         Recursive
        /home/pi/Desktop                                                                                      
                                         *
    
        (tracker index:28168): Tracker-WARNING **: 14:41:09.497: Could not expand XDG user directory 
&DOCUMENTS
    
        (tracker index:28168): Tracker-WARNING **: 14:41:09.498: Could not expand XDG user directory &MUSIC
    
    ...

 src/tracker/tracker-index.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker/tracker-index.c b/src/tracker/tracker-index.c
index 7902f48dd..ec0b9fbcd 100644
--- a/src/tracker/tracker-index.c
+++ b/src/tracker/tracker-index.c
@@ -332,7 +332,7 @@ print_list (GStrv    list,
                        g_free (str);
                }
                else {
-                       g_print("Could not expand XDG user directory %s", list[i]);
+                       g_warning ("Could not expand XDG user directory %s", list[i]);
                }
        }
 }


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