Commit 795578ef authored by Max Kellermann's avatar Max Kellermann

update: log start/finish of the update thread

parent 96493e03
...@@ -60,12 +60,22 @@ static void * update_task(void *_path) ...@@ -60,12 +60,22 @@ static void * update_task(void *_path)
{ {
const char *path = _path; const char *path = _path;
if (path != NULL && *path != 0)
g_debug("starting: %s", path);
else
g_debug("starting");
modified = update_walk(path, discard); modified = update_walk(path, discard);
g_free(_path);
if (modified || !db_exists()) if (modified || !db_exists())
db_save(); db_save();
if (path != NULL && *path != 0)
g_debug("finished: %s", path);
else
g_debug("finished");
g_free(_path);
progress = UPDATE_PROGRESS_DONE; progress = UPDATE_PROGRESS_DONE;
event_pipe_emit(PIPE_EVENT_UPDATE); event_pipe_emit(PIPE_EVENT_UPDATE);
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment