Permalink
Browse files

add logging to the runner

  • Loading branch information...
1 parent 02ce637 commit 1766e6ca4704ea69b5f1553b0c98adb37efc2479 @jamesgolick committed Apr 30, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/trample/runner.rb
View
@@ -1,5 +1,7 @@
module Trample
class Runner
+ include Logging
+
attr_reader :config, :threads
def initialize(config)
@@ -8,6 +10,8 @@ def initialize(config)
end
def trample
+ logger.info "Starting trample..."
+
config.concurrency.times do
thread = Thread.new(@config) do |c|
Session.new(c).trample
@@ -16,6 +20,8 @@ def trample
end
threads.each { |t| t.join }
+
+ logger.info "Trample completed..."
end
end
end

0 comments on commit 1766e6c

Please sign in to comment.