[gimp/metadata-improvements: 11/11] plug-ins: use logging for some messages that seem to be for debugging only.




commit 08afb7d03b9835c80db3299b2e0d09fcf094ef00
Author: Jacob Boerema <jgboerema gmail com>
Date:   Mon Nov 30 21:40:17 2020 -0500

    plug-ins: use logging for some messages that seem to be for debugging only.
    
    By using a logging domain we can filter the messages and can choose to
    only see them when needed. They seem to be leftovers from coding or
    debugging but I don't wanna invest too much time into this.

 plug-ins/metadata/metadata-editor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/metadata/metadata-editor.c b/plug-ins/metadata/metadata-editor.c
index dce69da56e..5dbb499f68 100644
--- a/plug-ins/metadata/metadata-editor.c
+++ b/plug-ins/metadata/metadata-editor.c
@@ -5169,11 +5169,11 @@ metadata_editor_write_callback (GtkWidget  *dialog,
             {
               for (types = 0; types < 6; types++)
                 {
-                  g_print ("%d %s %s\n", types, tag_data,
+                  g_log (ME_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%d %s %s", types, tag_data,
                            gettext (phone_types[types].display));
                   if (! strcmp (tag_data, gettext (phone_types[types].display)))
                     {
-                      g_print ("%d %s \n", types, phone_types[types].data);
+                      g_log (ME_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%d %s", types, phone_types[types].data);
                       strcpy (type2, phone_types[types].data);
                       break;
                     }


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