Bug 617017: Add logging support to cleanup_db.py r=bhearsum