summaryrefslogtreecommitdiff
path: root/plugins/poppler-thumbnailer
diff options
context:
space:
mode:
authorGaël Bonithon <gael@xfce.org>2021-12-24 23:40:38 +0100
committerGaël Bonithon <gael@xfce.org>2021-12-26 18:30:01 +0100
commit8f439a5ae5c46ce5e3868078735253ca9d03aca7 (patch)
tree1e8705bb677837f8e43bfb211306dfe2c3399e23 /plugins/poppler-thumbnailer
parentb014aabd2d78472a18a9b863e51dd6f1631d78cb (diff)
downloadtumbler-8f439a5ae5c46ce5e3868078735253ca9d03aca7.tar.gz
Debug: Prefer runtime to compile-time check for logging
This is more convenient for both the developer and the user, especially when it comes to providing logs in a bug report. As for the loss in terms of performance, it is minimal, and this is normally not an issue where these functions are used.
Diffstat (limited to 'plugins/poppler-thumbnailer')
-rw-r--r--plugins/poppler-thumbnailer/poppler-thumbnailer-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/poppler-thumbnailer/poppler-thumbnailer-plugin.c b/plugins/poppler-thumbnailer/poppler-thumbnailer-plugin.c
index 3f351e0..2fcd6a9 100644
--- a/plugins/poppler-thumbnailer/poppler-thumbnailer-plugin.c
+++ b/plugins/poppler-thumbnailer/poppler-thumbnailer-plugin.c
@@ -58,9 +58,7 @@ tumbler_plugin_initialize (TumblerProviderPlugin *plugin)
return;
}
-#ifdef DEBUG
- g_print ("Initializing the Tumbler Poppler PDF/PS Thumbnailer plugin\n");
-#endif
+ g_debug ("Initializing the Tumbler Poppler PDF/PS Thumbnailer plugin");
/* register the types provided by this plugin */
poppler_thumbnailer_register (plugin);
@@ -75,9 +73,7 @@ tumbler_plugin_initialize (TumblerProviderPlugin *plugin)
void
tumbler_plugin_shutdown (void)
{
-#ifdef DEBUG
- g_print ("Shutting down the Tumbler Poppler PDF/PS Thumbnailer plugin\n");
-#endif
+ g_debug ("Shutting down the Tumbler Poppler PDF/PS Thumbnailer plugin");
}