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...
This commit is contained in:
chrisndodge
2013-07-10 10:52:06 -07:00

View File

@@ -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)