mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Use logger.exception in app.py when request fails (#1570)
This commit is contained in:
parent
eb52cc8bb1
commit
98bd5f9eb9
1 changed files with 1 additions and 2 deletions
|
|
@ -83,8 +83,7 @@ def create_app(handler, username, password):
|
|||
reply = func(request_message)
|
||||
return reply.SerializeToString()
|
||||
except Exception as e:
|
||||
logger.error(
|
||||
"Error in handle admin web request.", exc_info=True)
|
||||
logger.exception("Error in handle admin web request.")
|
||||
return str(e), 500
|
||||
return wrapper
|
||||
return decorator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue