[gimp] libgimpcolor: use g_debug for informational "using babl ..." messages
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpcolor: use g_debug for informational "using babl ..." messages
- Date: Sat, 16 Oct 2021 22:46:48 +0000 (UTC)
commit dd67dd328730bee4a65fb8bd61d5ebd1bef97265
Author: Jacob Boerema <jgboerema gmail com>
Date: Sat Oct 16 18:46:08 2021 -0400
libgimpcolor: use g_debug for informational "using babl ..." messages
We sometimes can get a lot of informational messages like:
gimp_color_transform_new: using babl for 'sRGB IEC61966-2.1' ->
'GIMP built-in sRGB'.
After discussion on IRC there is agreement to use g_debug for these instead
of g_printerr.
This way they can still be seen with GIMP_DEBUG=LibGimpColor, but won't
clutter the console when looking at something else.
Note that this only changes the informational message. All the error
messages are left alone as g_printerr.
libgimpcolor/gimpcolortransform.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgimpcolor/gimpcolortransform.c b/libgimpcolor/gimpcolortransform.c
index 7826844401..0e9c91d666 100644
--- a/libgimpcolor/gimpcolortransform.c
+++ b/libgimpcolor/gimpcolortransform.c
@@ -238,10 +238,10 @@ gimp_color_transform_new (GimpColorProfile *src_profile,
priv->fish = babl_fish (priv->src_format,
priv->dest_format);
- g_printerr ("%s: using babl for '%s' -> '%s'\n",
- G_STRFUNC,
- gimp_color_profile_get_label (src_profile),
- gimp_color_profile_get_label (dest_profile));
+ g_debug ("%s: using babl for '%s' -> '%s'",
+ G_STRFUNC,
+ gimp_color_profile_get_label (src_profile),
+ gimp_color_profile_get_label (dest_profile));
return transform;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]