From 1b377260ccb1a5fc1388b14f9b7b809e0898d964 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 10 Jul 2013 12:34:39 -0400 Subject: [PATCH] change log levels on the delete course utility. Otherwise they get filtered out in production environments (min set to WARN level) --- common/lib/xmodule/xmodule/modulestore/store_utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/store_utilities.py b/common/lib/xmodule/xmodule/modulestore/store_utilities.py index 2ac80b2b8b..3c29627d84 100644 --- a/common/lib/xmodule/xmodule/modulestore/store_utilities.py +++ b/common/lib/xmodule/xmodule/modulestore/store_utilities.py @@ -111,7 +111,7 @@ def _delete_modules_except_course(modulestore, modules, source_location, commit) """ for module in modules: if module.category != 'course': - logging.debug("Deleting {0}...".format(module.location)) + logging.warning("Deleting {0}...".format(module.location)) if commit: # sanity check. Make sure we're not deleting a module in the incorrect course if module.location.org != source_location.org or module.location.course != source_location.course: @@ -126,7 +126,7 @@ def _delete_assets(contentstore, assets, commit): for asset in assets: asset_loc = Location(asset["_id"]) id = StaticContent.get_id_from_location(asset_loc) - logging.debug("Deleting {0}...".format(id)) + logging.warning("Deleting {0}...".format(id)) if commit: contentstore.delete(id)