mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-27 15:08:31 +00:00
add missing Log.forf for invidious companion
This commit is contained in:
parent
fe9b150205
commit
a9b370c68b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user