From a18070ffcaa925eb942ae8f651831c47eb9c2f00 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 29 Jun 2018 15:40:59 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.39.2