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 1d548f9
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 1d548f9

Please sign in to comment.