Quieten scan debug messages
This commit is contained in:
@@ -409,7 +409,7 @@ void *dacp_monitor_thread_code(__attribute__((unused)) void *na) {
|
||||
else
|
||||
idle_scan_count = 0;
|
||||
|
||||
debug(1, "HTTP Result: %d, Bad Scan Count: %d, Idle Scan Count: %d.", result, bad_result_count,
|
||||
debug(3, "Scan Result: %d, Bad Scan Count: %d, Idle Scan Count: %d.", result, bad_result_count,
|
||||
idle_scan_count);
|
||||
|
||||
if ((bad_result_count == config.scan_max_bad_response_count) ||
|
||||
@@ -454,8 +454,8 @@ void *dacp_monitor_thread_code(__attribute__((unused)) void *na) {
|
||||
int same = metadata_store.advanced_dacp_server_active == (result == 200);
|
||||
if (!same) {
|
||||
metadata_store.advanced_dacp_server_active = (result == 200);
|
||||
debug(1, "Setting dacp_advanced_server_active to %d because of a response of %d.", (result == 200),
|
||||
result);
|
||||
debug(1, "Setting dacp_advanced_server_active to %d because of a response of %d.",
|
||||
(result == 200), result);
|
||||
}
|
||||
metadata_hub_modify_epilog(inactive + (!same));
|
||||
}
|
||||
|
||||
+5
-5
@@ -136,9 +136,9 @@ void metadata_hub_modify_epilog(int modified) {
|
||||
// always run this after changing an entry or a sequence of entries in the metadata_hub
|
||||
// debug(1, "unlocking metadata hub for writing");
|
||||
int m = 0;
|
||||
if (metadata_store.dacp_server_active==0) {
|
||||
// debug(1,"player_stop release track metadata and artwork");
|
||||
//
|
||||
if (metadata_store.dacp_server_active == 0) {
|
||||
// debug(1,"player_stop release track metadata and artwork");
|
||||
//
|
||||
if (metadata_store.track_metadata) {
|
||||
m = 1;
|
||||
metadata_hub_release_track_metadata(metadata_store.track_metadata);
|
||||
@@ -146,10 +146,10 @@ void metadata_hub_modify_epilog(int modified) {
|
||||
}
|
||||
if (metadata_store.cover_art_pathname) {
|
||||
m = 1;
|
||||
metadata_hub_release_track_artwork();
|
||||
metadata_hub_release_track_artwork();
|
||||
}
|
||||
if (m)
|
||||
debug(1,"Release track metadata after dacp server goes inactive.");
|
||||
debug(1, "Release track metadata after dacp server goes inactive.");
|
||||
modified += m;
|
||||
}
|
||||
pthread_rwlock_unlock(&metadata_hub_re_lock);
|
||||
|
||||
Reference in New Issue
Block a user