Commit 1b377260 by Chris Dodge

change log levels on the delete course utility. Otherwise they get filtered out…

change log levels on the delete course utility. Otherwise they get filtered out in production environments (min set to WARN level)
parent d0e57862
......@@ -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)
......
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