From: Alan Knowles Date: Fri, 29 Jun 2018 07:40:59 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?p=app.mailtrimmer;a=commitdiff_plain;h=a18070ffcaa925eb942ae8f651831c47eb9c2f00 src/strip.vala --- diff --git a/src/strip.vala b/src/strip.vala index 53eb9c6..404c132 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -627,15 +627,20 @@ public class Strip : GLib.Object { } if (!need_return) { - GLib.debug("got %s", got_row ? "=Nothing=" : ret); + if (StripApplication.opt_debug_sql) { + GLib.debug("got %s", got_row ? "=Nothing=" : ret); + } return got_row ? "" : ret; } if (!got_row) { + GLib.debug("ERROR : no rows returned"); Posix.exit(1); return ""; } - GLib.debug("got %s", ret); + if (StripApplication.opt_debug_sql) { + GLib.debug("got %s", ret); + } return ret;