Skip to content

Commit

Permalink
Merge pull request #51 from dimagi/pkv/deploy-remove-log-file
Browse files Browse the repository at this point in the history
Remove django logging config for EBS
  • Loading branch information
snopoke authored Aug 3, 2023
2 parents 554bc49 + cd6fa33 commit c27e828
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
9 changes: 0 additions & 9 deletions .ebextensions/logging.config

This file was deleted.

20 changes: 6 additions & 14 deletions config/settings/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,37 +140,29 @@
"level": "DEBUG",
"class": "logging.StreamHandler",
"formatter": "verbose",
},
"file": {
"level": "DEBUG",
"class": "logging.handlers.RotatingFileHandler",
"formatter": "verbose",
"maxBytes": 10 * 1024 * 1024,
"backupCount": 20,
"filename": "/opt/python/log/django.log",
},
}
},
"root": {"level": "DEBUG", "handlers": ["console", "file"]},
"root": {"level": "DEBUG", "handlers": ["console"]},
"loggers": {
"django.db.backends": {
"level": "DEBUG",
"handlers": ["console", "file"],
"handlers": ["console"],
"propagate": True,
},
# # Errors logged by the SDK itself
# "sentry_sdk": {"level": "ERROR", "handlers": ["console"], "propagate": False},
"django.security.DisallowedHost": {
"level": "DEBUG",
"handlers": ["console", "file"],
"handlers": ["console"],
"propagate": True,
},
"django": {
"handlers": ["console", "file"],
"handlers": ["console"],
"level": "DEBUG",
"propagate": True,
},
"django.server": {
"handlers": ["console", "file"],
"handlers": ["console"],
"level": "DEBUG",
"propagate": True,
},
Expand Down

0 comments on commit c27e828

Please sign in to comment.