Skip to content

Commit

Permalink
Enable slack_bolt debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Jan 18, 2025
1 parent af31e7f commit 8adc3b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
23 changes: 23 additions & 0 deletions backend/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,29 @@ class Base(Configuration):

INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"console": {
"level": "DEBUG",
"class": "logging.StreamHandler",
},
},
"loggers": {
"django": {
"handlers": ["console"],
"level": "INFO",
"propagate": True,
},
"slack_bolt": {
"handlers": ["console"],
"level": "DEBUG",
"propagate": True,
},
},
}

MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
"django.middleware.security.SecurityMiddleware",
Expand Down
8 changes: 3 additions & 5 deletions backend/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
class Local(Base):
"""Local configuration."""

APP_NAME = "OWASP Nest Local"
CORS_ALLOWED_ORIGINS = ("http://localhost:3000",)
DEBUG = True

LOGGING = {}
SLACK_COMMANDS_ENABLED = True
SLACK_EVENTS_ENABLED = True

APP_NAME = "OWASP Nest Local"

CORS_ALLOWED_ORIGINS = ("http://localhost:3000",)

0 comments on commit 8adc3b1

Please sign in to comment.