Skip to content
This repository
Browse code

add message to output when file delete search starts and ends

  • Loading branch information...
commit 786497d93b0315cd2a1c7bbff7a1e28ffab77d97 1 parent 5832cc2
jesseangell authored April 04, 2012

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  lib/backup.rb
6  lib/backup.rb
@@ -184,7 +184,7 @@ def backup(o = {})
184 184
       #very large domain.  In my testing,  it is able to get through domains with millions of files in a matter of a second.  So
185 185
       #all in all it's not so bad
186 186
       if !o[:no_delete]
187  
-
  187
+        Log.instance.info("Start: Search for files to delete")
188 188
         BakFile.find_in_batches { |bak_files|
189 189
           union = "SELECT #{bak_files.first.fid} as fid"
190 190
           bak_files.shift
@@ -198,9 +198,7 @@ def backup(o = {})
198 198
           #Terminate program if the signal handler says so and this is a clean place to do it
199 199
           return true if SignalHandler.instance.should_quit
200 200
         }
201  
-
202  
-
203  
-
  201
+        Log.instance.info("End: Search for files to delete")
204 202
       end
205 203
 
206 204
       #Break out of infinite loop unless o[:non_stop] is set

0 notes on commit 786497d

Please sign in to comment.
Something went wrong with that request. Please try again.