Skip to content

Commit

Permalink
set default log level to INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jun 16, 2023
1 parent 45d077e commit feb072d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ephios/core/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import logging

from django.apps import AppConfig
from django.conf import settings
from dynamic_preferences.registries import preference_models

logger = logging.getLogger(__name__)


class CoreAppConfig(AppConfig):
name = "ephios.core"
Expand All @@ -12,3 +17,5 @@ def ready(self):

EventTypePreference = self.get_model("EventTypePreference")
preference_models.register(EventTypePreference, event_type_preference_registry)

logger.info("Installed plugins: %s", ", ".join(settings.PLUGINS))
2 changes: 0 additions & 2 deletions ephios/core/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

# The plugin mechanics are heavily inspired by pretix (then licenced under Apache 2.0) - Check it out!

logger.info("Installed plugins: %s", ", ".join(settings.PLUGINS))


def get_all_plugins():
"""
Expand Down
1 change: 1 addition & 0 deletions ephios/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
},
"root": {
"handlers": ["mail_admins", "console"],
"level": "INFO",
},
}

Expand Down

0 comments on commit feb072d

Please sign in to comment.