Skip to content

Commit

Permalink
log syncer concurrency settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian D. Burns authored and Brian D. Burns committed Jul 3, 2012
1 parent a4bee6c commit beb8a01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/backup/syncer/cloud/base.rb
Expand Up @@ -49,7 +49,10 @@ def initialize
##
# Performs the Sync operation
def perform!
Logger.message("#{ syncer_name } started the syncing process:")
Logger.message(
"#{ syncer_name } started the syncing process:\n" +
"\s\sConcurrency: #{ @concurrency_type } Level: #{ @concurrency_level }"
)

@directories.each do |directory|
SyncContext.new(
Expand Down
3 changes: 2 additions & 1 deletion spec/syncer/cloud/base_spec.rb
Expand Up @@ -55,7 +55,8 @@
syncer.stubs(:repository_object).returns(:a_repository_object)

Backup::Logger.expects(:message).with(
'Syncer::Cloud::Base started the syncing process:'
"Syncer::Cloud::Base started the syncing process:\n" +
"\s\sConcurrency: false Level: 2"
)
Backup::Logger.expects(:message).with(
'Syncer::Cloud::Base Syncing Complete!'
Expand Down

0 comments on commit beb8a01

Please sign in to comment.