aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-02-27 16:41:54 +0100
committerMax Kellermann <max@duempel.org>2010-02-27 16:41:54 +0100
commit795578ef9596c3cd02facb48aa9b4b6b73b2ee26 (patch)
tree35752a6a2895e677bf7087f19d3d740a013ea644 /src/update.c
parent96493e0333404ddea739a08e1e3ead8dcb6f836c (diff)
downloadmpd-795578ef9596c3cd02facb48aa9b4b6b73b2ee26.tar.gz
mpd-795578ef9596c3cd02facb48aa9b4b6b73b2ee26.tar.xz
mpd-795578ef9596c3cd02facb48aa9b4b6b73b2ee26.zip
update: log start/finish of the update thread
Diffstat (limited to '')
-rw-r--r--src/update.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index ea28e6052..83436612f 100644
--- a/src/update.c
+++ b/src/update.c
@@ -60,12 +60,22 @@ static void * update_task(void *_path)
{
const char *path = _path;
+ if (path != NULL && *path != 0)
+ g_debug("starting: %s", path);
+ else
+ g_debug("starting");
+
modified = update_walk(path, discard);
- g_free(_path);
if (modified || !db_exists())
db_save();
+ if (path != NULL && *path != 0)
+ g_debug("finished: %s", path);
+ else
+ g_debug("finished");
+ g_free(_path);
+
progress = UPDATE_PROGRESS_DONE;
event_pipe_emit(PIPE_EVENT_UPDATE);
return NULL;