Skip to content

Commit a9b370c

Browse files
committed
add missing Log.forf for invidious companion
1 parent fe9b150 commit a9b370c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/invidious/yt_backend/youtube_api.cr

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,16 +684,14 @@ module YoutubeAPI
684684
endpoint : String,
685685
data : Hash,
686686
) : Hash(String, JSON::Any)
687-
log_name = "invidious-companion"
688-
689687
headers = HTTP::Headers{
690688
"Content-Type" => "application/json; charset=UTF-8",
691689
"Authorization" => "Bearer #{CONFIG.invidious_companion_key}",
692690
}
693691

694692
# Logging
695-
Log.debug { "Using endpoint: \"#{endpoint}\"" }
696-
Log.trace { "POST data: #{data}" }
693+
::Log.forf.debug { "Using endpoint: \"#{endpoint}\"" }
694+
::Log.forf.trace { "POST data: #{data}" }
697695

698696
# Send the POST request
699697

0 commit comments

Comments
 (0)