refactor: don't use f-string on logging statements
The strings are now be formatted if the logging level is enabled.
This commit is contained in:
parent
c414068c16
commit
861698987c
23 changed files with 94 additions and 84 deletions
|
@ -46,7 +46,7 @@ def media(media_id):
|
|||
|
||||
Replaces: notify --media-id=#{m['schedule_table_id']}
|
||||
"""
|
||||
logger.info(f"Sending currently playing media id '{media_id}'")
|
||||
logger.info("Sending currently playing media id '%s'", media_id)
|
||||
api_client().notify_media_item_start_playing(media_id)
|
||||
|
||||
|
||||
|
@ -59,7 +59,7 @@ def webstream(media_id, data):
|
|||
|
||||
Replaces: notify --webstream='#{json_str}' --media-id=#{!current_dyn_id}
|
||||
"""
|
||||
logger.info(f"Sending currently playing webstream '{media_id}' data '{data}'")
|
||||
logger.info("Sending currently playing webstream '%s' data '%s'", media_id, data)
|
||||
api_client().notify_webstream_data(data, media_id)
|
||||
|
||||
|
||||
|
@ -72,7 +72,7 @@ def live(name, status):
|
|||
|
||||
Replaces: notify --source-name=#{sourcename} --source-status=#{status}
|
||||
"""
|
||||
logger.info(f"Sending currently playing live source '{name}' status '{status}'")
|
||||
logger.info("Sending currently playing live source '%s' status '%s'", name, status)
|
||||
api_client().notify_source_status(name, status)
|
||||
|
||||
|
||||
|
@ -91,7 +91,7 @@ def stream(stream_id, time, error):
|
|||
if error is not None:
|
||||
status = error
|
||||
|
||||
logger.info(f"Sending output stream '{stream_id}' status '{status}'")
|
||||
logger.info("Sending output stream '%s' status '%s'", stream_id, status)
|
||||
api_client().notify_liquidsoap_status(status, stream_id, time)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue