Permalink
Browse files

add message to output when file delete search starts and ends

  • Loading branch information...
1 parent 5832cc2 commit 786497d93b0315cd2a1c7bbff7a1e28ffab77d97 Jesse Angell committed Apr 4, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/backup.rb
View
@@ -184,7 +184,7 @@ def backup(o = {})
#very large domain. In my testing, it is able to get through domains with millions of files in a matter of a second. So
#all in all it's not so bad
if !o[:no_delete]
-
+ Log.instance.info("Start: Search for files to delete")
BakFile.find_in_batches { |bak_files|
union = "SELECT #{bak_files.first.fid} as fid"
bak_files.shift
@@ -198,9 +198,7 @@ def backup(o = {})
#Terminate program if the signal handler says so and this is a clean place to do it
return true if SignalHandler.instance.should_quit
}
-
-
-
+ Log.instance.info("End: Search for files to delete")
end
#Break out of infinite loop unless o[:non_stop] is set

0 comments on commit 786497d

Please sign in to comment.