After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 638884 - Use --debug-sql to log all sql queries to the console
Use --debug-sql to log all sql queries to the console
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
GIT
Other Linux
: Normal normal
: 0.9.0
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-07 05:57 UTC by Tim Howard
Modified: 2011-02-10 13:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Enable sql query logging (1.27 KB, patch)
2011-01-07 05:57 UTC, Tim Howard
committed Details | Review

Description Tim Howard 2011-01-07 05:57:23 UTC
Created attachment 177716 [details] [review]
Enable sql query logging

Summary pretty much sums it up.
Comment 1 David Nielsen 2011-01-07 22:50:19 UTC
Review of attachment 177716 [details] [review]:

It matches what we do in Banshee[1]. It applies to git master, compiles and functions as expected:

david@sagan:~$ f-spot --debug-sql
[1 Info  23:43:54.987] Initializing Mono.Addins
[1 Debug 23:44:03.546] Mono.Addins Initialization took 8,52306
[2 Debug 23:44:08.239] Executed in 139ms SELECT COUNT(*) FROM sqlite_master WHERE Type='table' AND Name='meta'
[2 Debug 23:44:08.466] Executed in 222ms SELECT id, name, data FROM meta

Looks good to me.

[1] http://git.gnome.org/browse/banshee/tree/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs#n80
Comment 2 Ruben Vermeersch 2011-02-07 14:56:49 UTC
Review of attachment 177716 [details] [review]:

Excellent, merge!