Skip to content

Commit

Permalink
global: structlog add better config
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Oct 18, 2023
1 parent 8cdbdd0 commit 1cf107b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hepcrawl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from scrapy.settings import default_settings

import os
import logging
import structlog


BOT_NAME = 'hepcrawl'
Expand Down Expand Up @@ -206,3 +208,10 @@ def redis_url(service_name, database):
from local_settings import *
except ImportError:
pass

structlog.configure(
processors=[
structlog.processors.JSONRenderer()
],

)

0 comments on commit 1cf107b

Please sign in to comment.