From 1d548f9e6f88fa7697071a7e26f6b1193cf3e233 Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Tue, 17 Oct 2023 13:37:38 +0200 Subject: [PATCH] global: structlog add better config --- hepcrawl/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hepcrawl/settings.py b/hepcrawl/settings.py index ceb025fb..70e4d969 100644 --- a/hepcrawl/settings.py +++ b/hepcrawl/settings.py @@ -20,6 +20,7 @@ from scrapy.settings import default_settings import os +import structlog BOT_NAME = 'hepcrawl' @@ -206,3 +207,9 @@ def redis_url(service_name, database): from local_settings import * except ImportError: pass + +structlog.configure( + processors=[ + structlog.processors.JSONRenderer() + ], +)