[filescanner] Log message modifications

This commit is contained in:
ejurgensen 2017-10-14 21:07:01 +02:00
parent 00b7b97382
commit 78dd8c89b6

View File

@ -253,7 +253,7 @@ scan_playlist(char *file, time_t mtime, int dir_id)
if (mtime && (pli->db_timestamp >= mtime)) if (mtime && (pli->db_timestamp >= mtime))
{ {
DPRINTF(E_LOG, L_SCAN, "Playlist '%s' is not modified, no processing required\n", file); DPRINTF(E_LOG, L_SCAN, "Unchanged playlist found, not processing '%s'\n", file);
// Protect this playlist's radio stations from purge after scan // Protect this playlist's radio stations from purge after scan
db_pl_ping_items_bymatch("http://", pli->id); db_pl_ping_items_bymatch("http://", pli->id);
@ -261,14 +261,14 @@ scan_playlist(char *file, time_t mtime, int dir_id)
return; return;
} }
DPRINTF(E_LOG, L_SCAN, "Playlist '%s' is modified, processing\n", file); DPRINTF(E_LOG, L_SCAN, "Modified playlist found, processing '%s'\n", file);
pl_id = pli->id; pl_id = pli->id;
db_pl_clear_items(pl_id); db_pl_clear_items(pl_id);
} }
else else
{ {
DPRINTF(E_LOG, L_SCAN, "Playlist '%s' is new, processing\n", file); DPRINTF(E_LOG, L_SCAN, "New playlist found, processing '%s'\n", file);
CHECK_NULL(L_SCAN, pli = calloc(1, sizeof(struct playlist_info))); CHECK_NULL(L_SCAN, pli = calloc(1, sizeof(struct playlist_info)));
@ -359,7 +359,7 @@ scan_playlist(char *file, time_t mtime, int dir_id)
counter++; counter++;
if (counter % 200 == 0) if (counter % 200 == 0)
{ {
DPRINTF(E_LOG, L_SCAN, "Added %d items to playlist...\n", counter); DPRINTF(E_LOG, L_SCAN, "Processed %d items...\n", counter);
db_transaction_end(); db_transaction_end();
db_transaction_begin(); db_transaction_begin();
} }