mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2025-04-13 05:17:12 +03:00
Verbose logging on request fail
This commit is contained in:
parent
e6345cbd41
commit
bacd5ac7fd
8
web.py
8
web.py
@ -2,7 +2,7 @@ from model import model
|
||||
import json
|
||||
import falcon
|
||||
import os
|
||||
|
||||
from EDMCLogging import get_main_logger
|
||||
import utils
|
||||
|
||||
"""
|
||||
@ -24,6 +24,8 @@ platform - one of
|
||||
PC
|
||||
"""
|
||||
|
||||
logger = get_main_logger()
|
||||
|
||||
model.open_model()
|
||||
|
||||
|
||||
@ -44,6 +46,10 @@ class Activity:
|
||||
resp.text = json.dumps(model.get_activity_changes(**args_activity_changes))
|
||||
|
||||
except Exception as e:
|
||||
logger.warning(
|
||||
f'Exception occurred during executing Activity request, args:\n{args_activity_changes}',
|
||||
exc_info=e
|
||||
)
|
||||
raise falcon.HTTPInternalServerError(description=str(e))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user