Tokens: Better logging
All checks were successful
Invidious CI / build (push) Successful in 5m46s

This commit is contained in:
Fijxu 2024-10-31 21:38:59 -03:00
parent fc910b43ba
commit 70dc1a9f11
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -6,9 +6,14 @@ module Tokens
def refresh_tokens
@@po_token = REDIS_DB.get("invidious:po_token")
@@visitor_data = REDIS_DB.get("invidious:visitor_data")
LOGGER.debug("RefreshTokens: Tokens are:")
LOGGER.debug("RefreshTokens: po_token: #{@@po_token}")
LOGGER.debug("RefreshTokens: visitor_data: #{@@visitor_data}")
if !@@po_token.nil? && !@@visitor_data.nil?
LOGGER.debug("RefreshTokens: Successfully updated tokens")
else
LOGGER.warn("RefreshTokens: Tokens are empty!")
end
LOGGER.trace("RefreshTokens: Tokens are:")
LOGGER.trace("RefreshTokens: po_token: #{@@po_token}")
LOGGER.trace("RefreshTokens: visitor_data: #{@@visitor_data}")
end
def get_tokens