<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>autotest/discover.rb</filename>
    </added>
    <added>
      <filename>spec/ruby_bosh_spec.rb</filename>
    </added>
    <added>
      <filename>spec/spec_helper.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -18,6 +18,11 @@ class RubyBOSH
   class AuthFailed &lt; StandardError; end
   class ConnFailed &lt; StandardError; end
 
+  @@logging = true
+  def self.logging=(value)
+    @@logging = value
+  end
+
   attr_accessor :jid, :rid, :sid, :success
   def initialize(jid, pw, service_url, opts={}) 
     @service_url = service_url
@@ -134,11 +139,11 @@ class RubyBOSH
   end
 
   def send(msg)
-    puts &quot;Ruby-BOSH - SEND\n#{msg}&quot;; msg
+    puts(&quot;Ruby-BOSH - SEND\n#{msg}&quot;) if @@logging; msg
   end
 
   def recv(msg)
-    puts &quot;Ruby-BOSH - RECV\n#{msg}&quot;; msg
+    puts(&quot;Ruby-BOSH - RECV\n#{msg}&quot;) if @logging; msg
   end
 end
 </diff>
      <filename>lib/ruby_bosh.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b07a1d05779bf53d92f07df31b334066b153f93c</id>
    </parent>
  </parents>
  <author>
    <name>Pradeep Elankumaran</name>
    <email>pradeep@intridea.com</email>
  </author>
  <url>http://github.com/skyfallsin/ruby_bosh/commit/24be3fac5145a60dac1e9e867bff4da9e104e16c</url>
  <id>24be3fac5145a60dac1e9e867bff4da9e104e16c</id>
  <committed-date>2009-02-23T08:25:34-08:00</committed-date>
  <authored-date>2009-02-23T08:25:34-08:00</authored-date>
  <message>added specs and autotest helpers</message>
  <tree>f4924c88a9c97caa99e4c244d5bae32763e10932</tree>
  <committer>
    <name>Pradeep Elankumaran</name>
    <email>pradeep@intridea.com</email>
  </committer>
</commit>
