Logging fix

This commit is contained in:
2024-04-17 22:59:52 +02:00
parent cc0af0ce32
commit c780308541
+5 -10
View File
@@ -19,6 +19,11 @@ s = crossfade(fade_out=3., fade_in=3., duration=5., s)
s = amplify(a,s) s = amplify(a,s)
s = blank.skip(max_blank=2., s) s = blank.skip(max_blank=2., s)
settings.log.stdout := true
settings.log.file := = true
settings.log.file.append := true
settings.log.file.path := "/home/pi/Conjurer/radio_log.log"
settings.log.level := 4
emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland [GvrvQTUbUcA].mp3") emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland [GvrvQTUbUcA].mp3")
radio = fallback(id="switcher",track_sensitive = false, [s, emergency]) radio = fallback(id="switcher",track_sensitive = false, [s, emergency])
@@ -31,18 +36,8 @@ end
radio.on_metadata(handle_metadata) radio.on_metadata(handle_metadata)
interactive.persistent("script.params") interactive.persistent("script.params")
log_to_stdout = true
log_to_file = true
logpath = "/home/pi/Conjurer/radio_log.log"
loglevel = 3
# Enable logging on Standard Output and set logging level.
set("log.stdout",log_to_stdout)
set("log.level",loglevel)
# Enable logging to file. See variable: logpath
set("log.file",log_to_file)
set("log.file.path",logpath)
output.file.hls("/tmp/hls",[("mp3-low", %mp3(bitrate=96)), ("mp3-hi", %mp3(bitrate=160))],radio) output.file.hls("/tmp/hls",[("mp3-low", %mp3(bitrate=96)), ("mp3-hi", %mp3(bitrate=160))],radio)
output.icecast(%mp3, host="retropie", port=8000,password=credentials.password, icy_metadata="true", mount="mp3-stream", radio) output.icecast(%mp3, host="retropie", port=8000,password=credentials.password, icy_metadata="true", mount="mp3-stream", radio)