add missing Log.forf for invidious companion

This commit is contained in:
Fijxu 2025-08-23 01:07:46 -04:00
parent fe9b150205
commit a9b370c68b
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -684,16 +684,14 @@ module YoutubeAPI
endpoint : String,
data : Hash,
) : Hash(String, JSON::Any)
log_name = "invidious-companion"
headers = HTTP::Headers{
"Content-Type" => "application/json; charset=UTF-8",
"Authorization" => "Bearer #{CONFIG.invidious_companion_key}",
}
# Logging
Log.debug { "Using endpoint: \"#{endpoint}\"" }
Log.trace { "POST data: #{data}" }
::Log.forf.debug { "Using endpoint: \"#{endpoint}\"" }
::Log.forf.trace { "POST data: #{data}" }
# Send the POST request