Fix/log tz (#10473)

This commit is contained in:
crazywoola 2024-11-08 20:24:22 +08:00 committed by GitHub
parent 06d2520db2
commit eb6c0b8027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 1 deletions

View File

@ -367,6 +367,10 @@ LOG_FILE=
LOG_FILE_MAX_SIZE=20 LOG_FILE_MAX_SIZE=20
# Log file max backup count # Log file max backup count
LOG_FILE_BACKUP_COUNT=5 LOG_FILE_BACKUP_COUNT=5
# Log dateformat
LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
# Log Timezone
LOG_TZ=UTC
# Indexing configuration # Indexing configuration
INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=1000 INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=1000

View File

@ -376,7 +376,7 @@ class LoggingConfig(BaseSettings):
LOG_TZ: Optional[str] = Field( LOG_TZ: Optional[str] = Field(
description="Timezone for log timestamps (e.g., 'America/New_York')", description="Timezone for log timestamps (e.g., 'America/New_York')",
default=None, default="UTC",
) )

View File

@ -54,6 +54,10 @@ LOG_FILE=
LOG_FILE_MAX_SIZE=20 LOG_FILE_MAX_SIZE=20
# Log file max backup count # Log file max backup count
LOG_FILE_BACKUP_COUNT=5 LOG_FILE_BACKUP_COUNT=5
# Log dateformat
LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
# Log Timezone
LOG_TZ=UTC
# Debug mode, default is false. # Debug mode, default is false.
# It is recommended to turn on this configuration for local development # It is recommended to turn on this configuration for local development

View File

@ -4,6 +4,10 @@ x-shared-env: &shared-api-worker-env
LOG_FILE: ${LOG_FILE:-} LOG_FILE: ${LOG_FILE:-}
LOG_FILE_MAX_SIZE: ${LOG_FILE_MAX_SIZE:-20} LOG_FILE_MAX_SIZE: ${LOG_FILE_MAX_SIZE:-20}
LOG_FILE_BACKUP_COUNT: ${LOG_FILE_BACKUP_COUNT:-5} LOG_FILE_BACKUP_COUNT: ${LOG_FILE_BACKUP_COUNT:-5}
# Log dateformat
LOG_DATEFORMAT: ${LOG_DATEFORMAT:-%Y-%m-%d %H:%M:%S}
# Log Timezone
LOG_TZ: ${LOG_TZ:-UTC}
DEBUG: ${DEBUG:-false} DEBUG: ${DEBUG:-false}
FLASK_DEBUG: ${FLASK_DEBUG:-false} FLASK_DEBUG: ${FLASK_DEBUG:-false}
SECRET_KEY: ${SECRET_KEY:-sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U} SECRET_KEY: ${SECRET_KEY:-sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U}