aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/dbupdate.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/gmg_commands/dbupdate.py')
-rw-r--r--mediagoblin/gmg_commands/dbupdate.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py
index 77eaf01d..27283a20 100644
--- a/mediagoblin/gmg_commands/dbupdate.py
+++ b/mediagoblin/gmg_commands/dbupdate.py
@@ -24,6 +24,10 @@ from mediagoblin.init import setup_global_and_app_config
from mediagoblin.tools.common import import_component
_log = logging.getLogger(__name__)
+logging.basicConfig()
+## Let's not set the level as debug by default to avoid confusing users :)
+# _log.setLevel(logging.DEBUG)
+
def dbupdate_parse_setup(subparser):
pass
@@ -90,14 +94,8 @@ forgotten to add it? ({1})'.format(plugin, exc))
try:
foundations = import_component('{0}.models:FOUNDATIONS'.format(plugin))
except ImportError as exc:
- _log.debug('No foundations found for {0}: {1}'.format(
- plugin,
- exc))
-
foundations = {}
except AttributeError as exc:
- _log.debug('Could not find FOUNDATIONS in {0}.models, have you \
-forgotten to add it? ({1})'.format(plugin, exc))
foundations = {}
if models: