Skip to content

Commit

Permalink
fix: set log level to debug (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna authored Sep 26, 2023
1 parent f161f38 commit b271de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion basedosdados_api/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def setup_logger(

logger.add(
stdout,
level="INFO",
level="DEBUG",
format=format,
serialize=serialize,
)
Expand Down
3 changes: 2 additions & 1 deletion basedosdados_api/middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ def process_template_response(self, request: WSGIRequest, response: TemplateResp
user = request.user
endpoint = request.get_full_path()
logger.warning(
f"VALIDATION_ERROR: {repr(errors)}",
f"{repr(errors)}",
user=user,
errors=errors,
endpoint=endpoint,
type="validation",
)
except Exception as e:
logger.error(e)
Expand Down

0 comments on commit b271de0

Please sign in to comment.