Skip to content

Commit

Permalink
Merge pull request #5 from RydalWater/the-road-goes-ever-on-and-on
Browse files Browse the repository at this point in the history
Logging config
  • Loading branch information
RydalWater authored Oct 4, 2024
2 parents 375e71a + 63130b6 commit 85a3a7e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion openlibrarian_root/openlibrarian/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,24 @@

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

# Logging configuration
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'ERROR',
'class': 'logging.FileHandler',
'filename': os.path.join(BASE_DIR, 'logs', 'error.log'),
},
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'ERROR',
'propagate': True,
},
},
}

0 comments on commit 85a3a7e

Please sign in to comment.