From bddbd2e9309ebc7d29e070d65d0ec6ed07ff2aa7 Mon Sep 17 00:00:00 2001 From: ivis-miyachi Date: Fri, 30 Jan 2026 09:43:59 +0900 Subject: [PATCH 1/2] Change the storage and output log level to INFO and the deletion frequency to once every 10 years(#57440) --- modules/weko-logging/weko_logging/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/weko-logging/weko_logging/config.py b/modules/weko-logging/weko_logging/config.py index a35f7aa3a3..e07f50dcb4 100644 --- a/modules/weko-logging/weko_logging/config.py +++ b/modules/weko-logging/weko_logging/config.py @@ -80,16 +80,16 @@ """ WEKO_LOGGING_USER_ACTIVITY_DB_SETTING = { - "log_level": "ERROR", + "log_level": "INFO", "delete": { - "when": "months", - "interval": 3 + "when": "years", + "interval": 10 } } """User activity logging to the database.""" WEKO_LOGGING_USER_ACTIVITY_STREAM_SETTING = { - "log_level": "ERROR" + "log_level": "INFO" } """User activity logging to the stream.""" From 747abc3a335244d3d8f3430fb12651cdf565713c Mon Sep 17 00:00:00 2001 From: ivis-miyachi Date: Fri, 30 Jan 2026 17:56:37 +0900 Subject: [PATCH 2/2] Deleted the execution of the audit log deletion task(#57440) --- scripts/instance.cfg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/instance.cfg b/scripts/instance.cfg index 428f4590bd..cc417b2887 100644 --- a/scripts/instance.cfg +++ b/scripts/instance.cfg @@ -264,11 +264,11 @@ CELERY_BEAT_SCHEDULE = { 'schedule': timedelta(hours=1), 'args': [], }, - 'delete_log': { - 'task': 'weko_logging.tasks.delete_log', - 'schedule': crontab(hour=0, minute=0), - 'args': [], - }, + # 'delete_log': { + # 'task': 'weko_logging.tasks.delete_log', + # 'schedule': crontab(hour=0, minute=0), + # 'args': [], + # }, 'bulk_post_item_to_researchmap': { 'task': 'weko_items_ui.tasks.bulk_post_item_to_researchmap', # 'schedule': crontab(minute='*/1'),