Tweak to cleanup_datasets script, only log error messages.

This commit is contained in:
Greg Von Kuster
2008-06-20 13:45:38 +00:00
parent fac1a8e2b7
commit 55cbdf9905
+3 -1
View File
@@ -225,7 +225,9 @@ def purge_datasets( d, cutoff_time, remove_from_disk ):
if remove_from_disk:
errmsg = purge_dataset( dataset )
if errmsg:
print errmsg
if errmsg.startswith( '# Error' ):
# Only log errors, no need to log "shared history" dataset messages
print errmsg
else:
dataset_count += 1
print "%s" % dataset.file_name