Skip to content

Commit

Permalink
fix: log auth errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Nov 5, 2024
1 parent c06f779 commit 408e384
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/io/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,9 @@ def _authorize(self, session=False):
)
if authorized:
auth_error = None
except Exception:
except Exception as e:
auth_error = f'Authorization callback errored. Could not validate user {state.user}.'
logger.warning(f"{auth_error}: {e}")
return authorized, auth_error

def _render_auth_error(self, auth_error):
Expand Down

0 comments on commit 408e384

Please sign in to comment.