feat: Add logging configuration to support dynamic log levels in config files

This commit is contained in:
Lorenzo Venerandi
2026-03-01 17:49:04 +01:00
parent 2fbea80156
commit 6ec4e49d10
4 changed files with 10 additions and 3 deletions

View File

@@ -33,6 +33,9 @@ backups:
exports:
path: "exports"
logging:
level: "DEBUG" # DEBUG, INFO, WARNING, ERROR, CRITICAL
database:
path: "data/krawl.db"
retention_days: 30

View File

@@ -2,8 +2,8 @@ apiVersion: v2
name: krawl-chart
description: A Helm chart for Krawl honeypot server
type: application
version: 1.0.9
appVersion: 1.0.9
version: 1.0.10
appVersion: 1.0.10
keywords:
- honeypot
- security

View File

@@ -28,6 +28,8 @@ data:
enabled: {{ .Values.config.backups.enabled }}
exports:
path: {{ .Values.config.exports.path | quote }}
logging:
level: {{ .Values.config.logging.level | quote }}
database:
path: {{ .Values.config.database.path | quote }}
retention_days: {{ .Values.config.database.retention_days }}

View File

@@ -86,10 +86,12 @@ config:
secret_path: null # Auto-generated if not set, or set to "/my-secret-dashboard"
backups:
path: "backups"
enabled: true
enabled: false
cron: "*/30 * * * *"
exports:
path: "exports"
logging:
level: "INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL
database:
path: "data/krawl.db"
retention_days: 30