Skip to content

Commit

Permalink
Quieten some debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Jan 19, 2023
1 parent 72f1554 commit 17c3979
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ void cleanup_threads(void) {
conns[i] = NULL;
}
if (conns[i] != NULL) {
debug(1, "Airplay Volume for connection %d is %.6f.", conns[i]->connection_number,
debug(2, "Airplay Volume for connection %d is %.6f.", conns[i]->connection_number,
suggested_volume(conns[i]));
connection_count++;
}
Expand All @@ -774,7 +774,7 @@ void cleanup_threads(void) {
debug(2, "%d active connections.", connection_count);
old_connection_count = connection_count;
}
debug(1, "Airplay Volume for new connections is %.6f.", suggested_volume(NULL));
debug(2, "Airplay Volume for new connections is %.6f.", suggested_volume(NULL));
}

// park a null at the line ending, and return the next line pointer
Expand Down
10 changes: 5 additions & 5 deletions shairport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2423,14 +2423,14 @@ int main(int argc, char **argv) {
debug(1, "busy timeout time is %d.", config.timeout);
debug(1, "drift tolerance is %f seconds.", config.tolerance);
debug(1, "password is \"%s\".", strnull(config.password));
debug(1, "default airplay volume is %.6f.", config.default_airplay_volume);
debug(1, "high threshold airplay volume is %.6f.", config.high_threshold_airplay_volume);
debug(1, "default airplay volume is: %.6f.", config.default_airplay_volume);
debug(1, "high threshold airplay volume is: %.6f.", config.high_threshold_airplay_volume);
if (config.limit_to_high_volume_threshold_time_in_minutes == 0)
debug(1, "check for higher-than-threshold volume for new play session is disabled.");
else
debug(1,
"suggest default airplay volume for new play session instead of higher-than-threshold "
"airplay volume after %d minutes.",
"suggest default airplay volume for new play sessions instead of higher-than-threshold "
"airplay volume after: %d minutes.",
config.limit_to_high_volume_threshold_time_in_minutes);
debug(1, "ignore_volume_control is %d.", config.ignore_volume_control);
if (config.volume_max_db_set)
Expand Down Expand Up @@ -2516,7 +2516,7 @@ int main(int argc, char **argv) {
// calculate the 12-hex-digit prefix by hashing the service name.
uint8_t ap_md5[16];

debug(1, "size of hw_addr is %u.", sizeof(config.hw_addr));
// debug(1, "size of hw_addr is %u.", sizeof(config.hw_addr));
#ifdef CONFIG_OPENSSL
MD5_CTX ctx;
MD5_Init(&ctx);
Expand Down

0 comments on commit 17c3979

Please sign in to comment.