Changeset - 146377454d45
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2019-09-30 15:19:54
brettcsmith@brettcsmith.org
settings: Add a console logger.
1 file changed with 9 insertions and 3 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -239,5 +239,3 @@ INSTALLED_APPS = [
 

	
 
# A sample logging configuration. The only tangible logging
 
# performed by this configuration is to send an email to
 
# the site admins on every HTTP 500 error when DEBUG=False.
 
# A sample logging configuration.
 
# See http://docs.djangoproject.com/en/dev/topics/logging for
...
 
@@ -253,2 +251,6 @@ LOGGING = {
 
    "handlers": {
 
        'console': {
 
            'level': os.environ.get('DJANGO_LOG_LEVEL', 'WARNING'),
 
            'class': 'logging.StreamHandler',
 
        },
 
        "mail_admins": {
...
 
@@ -260,2 +262,6 @@ LOGGING = {
 
    "loggers": {
 
        'django': {
 
            'handlers': ['console'],
 
            'propagate': True,
 
        },
 
        "django.request": {
0 comments (0 inline, 0 general)