mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Added more logging when authentication was denied
CURA-2270
This commit is contained in:
parent
2a349214cf
commit
24827ba5a1
1 changed files with 1 additions and 0 deletions
|
@ -801,6 +801,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
elif status_code == 403:
|
||||
# If we already had an auth (eg; didn't request one), we only need a single 403 to see it as denied.
|
||||
if self._authentication_state != AuthState.AuthenticationRequested:
|
||||
Logger.log("d", "While trying to verify the authentication state, we got a forbidden response. Our own auth state was %s", self._authentication_state)
|
||||
self.setAuthenticationState(AuthState.AuthenticationDenied)
|
||||
elif status_code == 200:
|
||||
self.setAuthenticationState(AuthState.Authenticated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue