Do not log anvil.user errors

Since no amount of debugging from my side can make users remember their passwords, it does not make any sense to show them as an error when checking my app logs.

Instead, all anvil.users.UserExists or anvil.users.AuthenticationFailed can be treated as a warning instead in App Logs

So, the idea is to

  1. still log them (despite the title)
  2. but as warnings, not errors

?

Yes, that is sort of the idea.

(Apologies for not framing the post correctly)

You can currently do that with custom error handling, where you can print the messages you want as warnings, and raise the exceptions you want shown as errors: Anvil Docs | Error Reporting

1 Like

Actually I was just talking about showing them as warnings when viewing all your App Sessions.