summaryrefslogtreecommitdiff
path: root/src/db/DatabaseTable.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-19 05:09:43 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-19 05:09:43 +0200
commit694c7e47ece2cd322b0d2b57b88933a22d2734db (patch)
treec098b2104f1b76db60dd1f50de060c4439437fd8 /src/db/DatabaseTable.vala
parent6824050190585821a13ce0f52d314986a25d6c2a (diff)
parentb076314018e4b53d745823754a26eb6fb73a2801 (diff)
Merge tag 'upstream/0.24.1'
Upstream version 0.24.1
Diffstat (limited to 'src/db/DatabaseTable.vala')
-rw-r--r--src/db/DatabaseTable.vala10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/db/DatabaseTable.vala b/src/db/DatabaseTable.vala
index 09c026f..4fc8853 100644
--- a/src/db/DatabaseTable.vala
+++ b/src/db/DatabaseTable.vala
@@ -49,9 +49,13 @@ public abstract class DatabaseTable {
e.message));
}
}
-#if SQLITE_DEBUG
- db.trace (on_trace);
-#endif
+
+ unowned string? sql_debug = Environment.get_variable
+ ("SHOTWELL_SQL_DEBUG");
+
+ if (sql_debug != "") {
+ db.trace (on_trace);
+ }
}
public static void on_trace (string message) {