mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-27 23:18:35 +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,
|
endpoint : String,
|
||||||
data : Hash,
|
data : Hash,
|
||||||
) : Hash(String, JSON::Any)
|
) : Hash(String, JSON::Any)
|
||||||
log_name = "invidious-companion"
|
|
||||||
|
|
||||||
headers = HTTP::Headers{
|
headers = HTTP::Headers{
|
||||||
"Content-Type" => "application/json; charset=UTF-8",
|
"Content-Type" => "application/json; charset=UTF-8",
|
||||||
"Authorization" => "Bearer #{CONFIG.invidious_companion_key}",
|
"Authorization" => "Bearer #{CONFIG.invidious_companion_key}",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
Log.debug { "Using endpoint: \"#{endpoint}\"" }
|
::Log.forf.debug { "Using endpoint: \"#{endpoint}\"" }
|
||||||
Log.trace { "POST data: #{data}" }
|
::Log.forf.trace { "POST data: #{data}" }
|
||||||
|
|
||||||
# Send the POST request
|
# Send the POST request
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user