src/strip.vala
authorAlan Knowles <alan@roojs.com>
Fri, 29 Jun 2018 07:40:59 +0000 (15:40 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 29 Jun 2018 07:40:59 +0000 (15:40 +0800)
src/strip.vala

index 53eb9c6..404c132 100644 (file)
@@ -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;