Skip to content

Commit

Permalink
Merge pull request #462 from UW-GAC/maint/fix-cron-logging
Browse files Browse the repository at this point in the history
Redirect default cron log to stdout
  • Loading branch information
jmcarson authored Feb 22, 2024
2 parents 972a629 + ca9ce84 commit d7f869c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/settings/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

from .production import * # noqa
from .production import LOGGING, SOCIALACCOUNT_PROVIDERS, env # noqa

Expand All @@ -14,6 +16,8 @@

except ImportError:
LOGGING["handlers"]["console"]["class"] = "logging.StreamHandler"
# Send stream logging to stdout so we can redirect exceptions to email
LOGGING["handlers"]["console"]["stream"] = sys.stdout

# Update drupal oauth api url for production
DRUPAL_SITE_URL = "https://primedconsortium.org"
Expand Down
4 changes: 4 additions & 0 deletions config/settings/apps_dev.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

from .production import * # noqa
from .production import LOGGING, env # noqa

Expand All @@ -14,3 +16,5 @@

except ImportError:
LOGGING["handlers"]["console"]["class"] = "logging.StreamHandler"
# Send stream logging to stdout so we can redirect exceptions to email
LOGGING["handlers"]["console"]["stream"] = sys.stdout

0 comments on commit d7f869c

Please sign in to comment.