Skip to content

Commit

Permalink
Merge pull request #342 from inspirehep/add-logger
Browse files Browse the repository at this point in the history
global: structlog add better config
  • Loading branch information
drjova authored Oct 18, 2023
2 parents 8cdbdd0 + 1d548f9 commit cf83585
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hepcrawl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from scrapy.settings import default_settings

import os
import structlog


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

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

0 comments on commit cf83585

Please sign in to comment.