Skip to content

Commit

Permalink
Merge pull request #31322 from openedx/nmoy/PSRE-2015_tracking_logs
Browse files Browse the repository at this point in the history
fix: change docker-production log settings
  • Loading branch information
ohnickmoy authored Nov 23, 2022
2 parents af050d4 + 9cd84f9 commit e5b4879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lms/envs/docker-production.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Specific overrides to the base prod settings for a docker production deployment.
"""

from logging.handlers import SysLogHandler
import platform
from .production import * # pylint: disable=wildcard-import, unused-wildcard-import

Expand Down Expand Up @@ -51,10 +50,11 @@ def get_docker_logger_config(log_dir='/var/tmp',
},
'tracking': {
'level': 'DEBUG',
'class': 'logging.handlers.SysLogHandler',
'address': ('localhost', 5140),
'facility': SysLogHandler.LOG_LOCAL1,
'class': 'logging.handlers.RotatingFileHandler',
'filename': '/var/tmp/tracking_logs.log',
'backupCount': 5,
'formatter': 'raw',
'maxBytes': 10485760
}
},
'loggers': {
Expand Down

0 comments on commit e5b4879

Please sign in to comment.