Explorar o código

Add empty oauth token logging

Zed %!s(int64=3) %!d(string=hai) anos
pai
achega
82beb5da8c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/apiutils.nim

+ 1 - 0
src/apiutils.nim

@@ -67,6 +67,7 @@ template fetchImpl(result, fetchBody) {.dirty.} =
 
   var account = await getGuestAccount(api)
   if account.oauthToken.len == 0:
+    echo "[accounts] Empty oauth token, account: ", account.id
     raise rateLimitError()
 
   try: