From c773b10c9e8763c2e9db8aebad349a8eb5fb0091 Mon Sep 17 00:00:00 2001 From: Paul Schilling Date: Mon, 2 Oct 2023 15:48:02 +0200 Subject: [PATCH 1/2] [#1773] Bumped log-outgoing requests and added setting for cleaning up logs --- requirements/base.txt | 2 +- requirements/ci.txt | 2 +- requirements/dev.txt | 2 +- src/open_inwoner/conf/base.py | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index ec0009f790..0512773ab5 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -195,7 +195,7 @@ django-js-asset==1.2.2 # django-mptt django-localflavor==3.1 # via -r requirements/base.in -django-log-outgoing-requests==0.5.0 +django-log-outgoing-requests==0.5.2 # via -r requirements/base.in django-mptt==0.13.4 # via django-filer diff --git a/requirements/ci.txt b/requirements/ci.txt index 15b2090c64..3f304e55cf 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -309,7 +309,7 @@ django-localflavor==3.1 # via # -c requirements/base.txt # -r requirements/base.txt -django-log-outgoing-requests==0.5.0 +django-log-outgoing-requests==0.5.2 # via # -c requirements/base.txt # -r requirements/base.txt diff --git a/requirements/dev.txt b/requirements/dev.txt index a1352d0034..c76e63ee5c 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -338,7 +338,7 @@ django-localflavor==3.1 # via # -c requirements/ci.txt # -r requirements/ci.txt -django-log-outgoing-requests==0.5.0 +django-log-outgoing-requests==0.5.2 # via # -c requirements/ci.txt # -r requirements/ci.txt diff --git a/src/open_inwoner/conf/base.py b/src/open_inwoner/conf/base.py index 1bc78eb81d..e1793e613f 100644 --- a/src/open_inwoner/conf/base.py +++ b/src/open_inwoner/conf/base.py @@ -442,7 +442,9 @@ # LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=True) LOG_OUTGOING_REQUESTS_RESET_DB_SAVE_AFTER = None # reset config after $ minutes - +LOG_OUTGOING_REQUESTS_MAX_AGE = config( + "LOG_OUTGOING_REQUESTS_MAX_AGE", default=1 +) # clean logs after 1 day # # AUTH settings - user accounts, passwords, backends... From 0c940bf8a7ee55f5bfb45c46d74447a6ef83ecae Mon Sep 17 00:00:00 2001 From: Alex de Landgraaf Date: Tue, 3 Oct 2023 10:53:01 +0200 Subject: [PATCH 2/2] Update base.py --- src/open_inwoner/conf/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/open_inwoner/conf/base.py b/src/open_inwoner/conf/base.py index e1793e613f..fa4dc938a9 100644 --- a/src/open_inwoner/conf/base.py +++ b/src/open_inwoner/conf/base.py @@ -443,8 +443,8 @@ LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=True) LOG_OUTGOING_REQUESTS_RESET_DB_SAVE_AFTER = None # reset config after $ minutes LOG_OUTGOING_REQUESTS_MAX_AGE = config( - "LOG_OUTGOING_REQUESTS_MAX_AGE", default=1 -) # clean logs after 1 day + "LOG_OUTGOING_REQUESTS_MAX_AGE", default=30 +) # clean logs after 30 days # # AUTH settings - user accounts, passwords, backends...