summaryrefslogtreecommitdiff
path: root/src/cd-device-db.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2012-11-22 14:06:49 +0000
committerRichard Hughes <richard@hughsie.com>2012-11-22 14:06:49 +0000
commit9a64de847b9ffb6c5b692471bc02ec1d70fa225c (patch)
tree226f318666a71d539da7e76cda61026e9d3406a1 /src/cd-device-db.c
parent49c452d828a2a75ae1a9f6b04ad160aa6fc76631 (diff)
downloadcolord-9a64de847b9ffb6c5b692471bc02ec1d70fa225c.tar.gz
Use syslog to be able to debug what the daemon is doing without restarting it
If required, use 'systemctl status colord.service' to view the output.
Diffstat (limited to 'src/cd-device-db.c')
-rw-r--r--src/cd-device-db.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cd-device-db.c b/src/cd-device-db.c
index e69fa64..aa1912b 100644
--- a/src/cd-device-db.c
+++ b/src/cd-device-db.c
@@ -24,6 +24,7 @@
#include <gio/gio.h>
#include <glib-object.h>
#include <sqlite3.h>
+#include <syslog.h>
#include "cd-common.h"
#include "cd-device-db.h"
@@ -65,6 +66,7 @@ cd_device_db_load (CdDeviceDb *ddb,
goto out;
g_debug ("CdDeviceDb: trying to open database '%s'", filename);
+ syslog (LOG_INFO, "Using device database file %s", filename);
rc = sqlite3_open (filename, &ddb->priv->db);
if (rc != SQLITE_OK) {
ret = FALSE;