Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Apr 2, 2024
1 parent 85583e9 commit beeff79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
17 changes: 2 additions & 15 deletions src/urban/custom_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,8 @@
dsn=SENTRY_DSN,
integrations=integrations,
environment=os.getenv("SENTRY_ENVIRONMENT", "production"),
traces_sample_rate=float(os.getenv("SENTRY_TRACES_SAMPLE_RATE", 0.1)),
traces_sample_rate=float(os.getenv("SENTRY_TRACES_SAMPLE_RATE", 1.0)),
default_integrations=False,
)

LOGGING["loggers"] = {
"django.db.backends": {
"level": "ERROR",
"handlers": ["console"],
"propagate": False,
},
# Errors logged by the SDK itself
"sentry_sdk": {"level": "ERROR", "handlers": ["console"], "propagate": False},
"django.security.DisallowedHost": {
"level": "ERROR",
"handlers": ["console"],
"propagate": False,
},
}
LOGGING["loggers"]["sentry_sdk"] = {"level": "ERROR", "handlers": ["console"], "propagate": False}
3 changes: 2 additions & 1 deletion src/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[uwsgi]
# uwsgi-socket = 0.0.0.0:8000
http-socket = 0.0.0.0:8000
logto = /var/log/geonode.log
# logto = /var/log/geonode.log
log-master = true
# pidfile = /tmp/geonode.pid

chdir = /usr/src/urban/
Expand Down

0 comments on commit beeff79

Please sign in to comment.