<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,6 +2,7 @@ require File.dirname(__FILE__) + &quot;/../../deep_test&quot;
 options = DeepTest::Options.from_command_line(ENV['OPTIONS'])
 ENV['DEEP_TEST_LOG_LEVEL'] = options.environment_log_level
 options.ssh_client_connection_info = DeepTest::Distributed::SshClientConnectionInfo.new
+
 DeepTest.logger.debug { &quot;mirror establish_beachhead for #{options.origin_hostname}&quot; }
 
 STDIN.close</diff>
      <filename>lib/deep_test/distributed/establish_beachhead.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,10 +11,13 @@ module DeepTest
 
       def establish_beachhead(options)
         command  = &quot;#{ssh_command(options)} '#{spawn_command(options)}' 2&gt;&amp;1&quot;
-        DeepTest.logger.debug { &quot;Establishing Beachhed: #{command}&quot; }
+        DeepTest.logger.debug { &quot;Establishing Beachhead: #{command}&quot; }
         
         output = `#{command}`
         output.each do |line|
+          if DeepTest.logger.level == Logger::DEBUG
+            puts output
+          end
           if line =~ /Beachhead port: (.+)/
             @wire = Telegraph::Wire.connect(@config[:address], $1.to_i)
           end</diff>
      <filename>lib/deep_test/distributed/landing_ship.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,8 @@ module DeepTest
   class Logger &lt; ::Logger
     def initialize(*args)
       super
-      self.formatter = proc { |severity, time, progname, msg| &quot;[DeepTest] #{time.strftime &quot;%F %T&quot;} #{msg}\n&quot; }
+      hostname = Socket.gethostname
+      self.formatter = proc { |severity, time, progname, msg| &quot;[DeepTest@#{hostname}] #{time.strftime &quot;%F %T&quot;} #{msg}\n&quot; }
       self.level = configured_log_level
     end
 </diff>
      <filename>lib/deep_test/logger.rb</filename>
    </modified>
    <modified>
      <diff>@@ -77,10 +77,10 @@ module DeepTest
         Timewarp.freeze(&quot;2009-09-22 12:01:33&quot;) do
           controller.dispatch(:method_call)
           assert_equal &lt;&lt;-end_log, DeepTest.logger.logged_output
-[DeepTest] 2009-09-22 12:01:33 Exception while dispatching method_call to #{receiver.inspect}:
-[DeepTest] 2009-09-22 12:01:33 Exception: message
-[DeepTest] 2009-09-22 12:01:33 file1:1
-[DeepTest] 2009-09-22 12:01:33 file2:2
+[DeepTest@#{Socket.gethostname}] 2009-09-22 12:01:33 Exception while dispatching method_call to #{receiver.inspect}:
+[DeepTest@#{Socket.gethostname}] 2009-09-22 12:01:33 Exception: message
+[DeepTest@#{Socket.gethostname}] 2009-09-22 12:01:33 file1:1
+[DeepTest@#{Socket.gethostname}] 2009-09-22 12:01:33 file2:2
           end_log
         end
       end</diff>
      <filename>test/deep_test/distributed/dispatch_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ module DeepTest
     
     test &quot;formatter uses msg only&quot; do
       time = Time.parse(&quot;2009-09-22 12:01:33&quot;)
-      assert_equal &quot;[DeepTest] 2009-09-22 12:01:33 my_msg\n&quot;, DeepTest.logger.formatter.call(nil, time, nil, &quot;my_msg&quot;)
+      assert_equal &quot;[DeepTest@#{Socket.gethostname}] 2009-09-22 12:01:33 my_msg\n&quot;, DeepTest.logger.formatter.call(nil, time, nil, &quot;my_msg&quot;)
     end
 
     Logger::Severity.constants.each do |severity|
@@ -17,18 +17,20 @@ module DeepTest
         assert_raises(ArgumentError) { logger.send severity.downcase, &quot;a&quot;  }
       end
 
+      THE_DATE = '\d{4}-\d\d-\d\d \d\d:\d\d:\d\d' unless defined?(THE_DATE)
+
       test &quot;#{severity.downcase} can be called with a block&quot; do
         logger = Logger.new(out = StringIO.new)
         logger.level = Logger.const_get(severity)
         logger.send(severity.downcase) { &quot;a&quot; }
-        assert_match /\[DeepTest\] \d{4}-\d\d-\d\d \d\d:\d\d:\d\d a\n/, out.string
+        assert_match /\[DeepTest@#{Socket.gethostname}\] #{THE_DATE} a\n/, out.string
       end
 
       test &quot;#{severity.downcase} rescues errors from block and logs them&quot; do
         logger = Logger.new(out = StringIO.new)
         logger.level = Logger.const_get(severity)
-        logger.send(severity.downcase) { raise Exception, &quot;my error&quot; }
-        assert_match /\[DeepTest\] \d{4}-\d\d-\d\d \d\d:\d\d:\d\d Exception: my error occurred logging on #{__FILE__}:#{__LINE__ - 1}:in `send'\n/,
+        logger.send(severity.downcase) { raise Exception, &quot;e&quot; }
+        assert_match /\[DeepTest@#{Socket.gethostname}\] #{THE_DATE} Exception: e occurred logging on #{__FILE__}:#{__LINE__ - 1}:in `send'\n/,
                     out.string
       end
     end</diff>
      <filename>test/deep_test/logger_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>76afbb47c31b320675aae280c48606814a9e8f36</id>
    </parent>
  </parents>
  <author>
    <name>qxjit (David Vollbracht)</name>
    <email>david.vollbracht@gmail.com</email>
  </author>
  <url>http://github.com/qxjit/deep-test/commit/34c1802cce3fc9e92a45282f6590679a68d3c51f</url>
  <id>34c1802cce3fc9e92a45282f6590679a68d3c51f</id>
  <committed-date>2009-08-07T08:44:17-07:00</committed-date>
  <authored-date>2009-08-07T08:44:17-07:00</authored-date>
  <message>add hostname to log messages</message>
  <tree>9b5be7cc851fba86ece008cc8419f1823def7783</tree>
  <committer>
    <name>qxjit (David Vollbracht)</name>
    <email>david.vollbracht@gmail.com</email>
  </committer>
</commit>
