Skip to content
Snippets Groups Projects
Verified Commit 01132add authored by Ole Binder's avatar Ole Binder
Browse files

Fix: Update print statements for liquidsoap formatter bug

parent 6f2f1cda
No related branches found
No related tags found
1 merge request!17Yaml configuration file
...@@ -46,9 +46,7 @@ def on_metadata_notification(meta) = ...@@ -46,9 +46,7 @@ def on_metadata_notification(meta) =
log( log(
level=3, level=3,
label="metadata", label="metadata",
"Detected FALLBACK channel `#{channel_name}` playing (Show ID: #{ "Detected FALLBACK channel `#{channel_name}` playing (Show ID: #{fallback_show_id()})"
fallback_show_id()
})"
) )
show_name := fallback_show_name() show_name := fallback_show_name()
show_id := fallback_show_id() show_id := fallback_show_id()
......
...@@ -199,9 +199,7 @@ def post_playlog(api_url, data) = ...@@ -199,9 +199,7 @@ def post_playlog(api_url, data) =
) )
else else
log( log(
"ERROR during playlog POST: #{result.status_code} | #{ "ERROR during playlog POST: #{result.status_code} | #{result.status_message}"
result.status_message
}"
) )
end end
end end
......
...@@ -68,9 +68,7 @@ def create_input_line(device) = ...@@ -68,9 +68,7 @@ def create_input_line(device) =
fun (json_string) -> fun (json_string) ->
begin begin
log( log(
"Received JSON to set track metadata on channel '#{source_id}' to:\n #{ "Received JSON to set track metadata on channel '#{source_id}' to:\n #{json_string}"
json_string
}"
) )
metadata = build_metadata(json_string) metadata = build_metadata(json_string)
insert_callback = list.assoc(source_id, in_line_insert_callbacks()) insert_callback = list.assoc(source_id, in_line_insert_callbacks())
......
...@@ -153,9 +153,13 @@ then ...@@ -153,9 +153,13 @@ then
settings.server.telnet.set(false) settings.server.telnet.set(false)
else else
print( print(
"\tLiquidsoap Telnet Server at #{config.telnet.server_host}:#{ "\tLiquidsoap Telnet Server at " ^
config.telnet.server_port config.telnet.server_host ^
} (#{config.telnet.server_timeout}s timeout)" ":" ^
string.float(config.telnet.server_port) ^
" (" ^
string.float(config.telnet.server_timeout) ^
"s timeout)"
) )
settings.server.telnet.bind_addr.set(config.telnet.server_host) settings.server.telnet.bind_addr.set(config.telnet.server_host)
settings.server.telnet.port.set(int_of_float(config.telnet.server_port)) settings.server.telnet.port.set(int_of_float(config.telnet.server_port))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment