Bugfix for embedded player sending too many requests on load, quieter logging for boto

This commit is contained in:
Albert Santoni 2015-04-29 11:46:44 -04:00
parent de8edf982a
commit b3a19ae49e
2 changed files with 4 additions and 2 deletions

View File

@ -238,7 +238,7 @@
}
// variables for updating the player's metadata
var time_to_next_track_starts;
var time_to_next_track_starts = 0;
var metadataTimer;
// Fetches the streams metadata from the Airtime live-info API
@ -271,7 +271,6 @@
} else {
$("ul.schedule_list").find("li").html(data.next.name);
}
}
});
// Add 3 seconds to the timeout so Airtime has time to update the metadata before we fetch it

View File

@ -60,6 +60,9 @@ class AirtimeAnalyzerServer:
#Disable most pika/rabbitmq logging:
pika_logger = logging.getLogger('pika')
pika_logger.setLevel(logging.CRITICAL)
boto_logger = logging.getLogger('auth')
boto_logger.setLevel(logging.CRITICAL)
# Set up logging
logFormatter = logging.Formatter("%(asctime)s [%(module)s] [%(levelname)-5.5s] %(message)s")