Commit 9824ba43 by chrisndodge

Merge pull request #364 from edx/fix/cdodge/change-log-level-on-course-delete

change log levels on the delete course utility. Otherwise they get filte...
parents 7993d5c1 1b377260
...@@ -111,7 +111,7 @@ def _delete_modules_except_course(modulestore, modules, source_location, commit) ...@@ -111,7 +111,7 @@ def _delete_modules_except_course(modulestore, modules, source_location, commit)
""" """
for module in modules: for module in modules:
if module.category != 'course': if module.category != 'course':
logging.debug("Deleting {0}...".format(module.location)) logging.warning("Deleting {0}...".format(module.location))
if commit: if commit:
# sanity check. Make sure we're not deleting a module in the incorrect course # 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: if module.location.org != source_location.org or module.location.course != source_location.course:
...@@ -126,7 +126,7 @@ def _delete_assets(contentstore, assets, commit): ...@@ -126,7 +126,7 @@ def _delete_assets(contentstore, assets, commit):
for asset in assets: for asset in assets:
asset_loc = Location(asset["_id"]) asset_loc = Location(asset["_id"])
id = StaticContent.get_id_from_location(asset_loc) id = StaticContent.get_id_from_location(asset_loc)
logging.debug("Deleting {0}...".format(id)) logging.warning("Deleting {0}...".format(id))
if commit: if commit:
contentstore.delete(id) contentstore.delete(id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment