Skip to content

Commit

Permalink
A little logging
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Dec 24, 2017
1 parent 78e9c9c commit cd4a7f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bakery/apps.py
@@ -1,11 +1,15 @@
import fs
import logging
from django.conf import settings
from django.apps import AppConfig
logger = logging.getLogger(__name__)


class BakeryConfig(AppConfig):
name = 'bakery'
verbose_name = "Bakery"

def ready(self):
self.filesystem = fs.open_fs(getattr(settings, 'BAKERY_FILESYSTEM', "osfs:///"))
self.filesystem_name = getattr(settings, 'BAKERY_FILESYSTEM', "osfs:///")
logger.debug("Loading filesystem at {}".format(self.filesystem_name))
self.filesystem = fs.open_fs(self.filesystem_name)

0 comments on commit cd4a7f8

Please sign in to comment.