<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,3 +3,4 @@
 .project
 test/test.db
 test/debug.log
+scout_config.yml</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,10 @@ class Scout
       }
       config_path=File.join(File.dirname(__FILE__),&quot;../scout_config.yml&quot;)  
     
-      return false if !File.exists(config_path)
+      if !File.exists?(config_path)
+        puts &quot;** Could not load Scout Instrumentation. Check for config file at #{config_path}&quot;
+        return false 
+      end
       begin
         o=YAML.load(File.read(config_path))
         self.config[:interval]=o['interval'] if o['interval'].is_a?(Integer)
@@ -38,23 +41,23 @@ class Scout
         
         # this can be a simple value, or a hash of hostnames=&gt;values
         temp=o[RAILS_ENV]
-        
+                
         if temp.is_a?(Integer)
           self.config[:plugin_id]=temp
-          puts &quot;** Scout Instrumentation Loaded with plugin_id=#{self.plugin_id} for environment=#{RAILS_ENV}&quot;
+          puts &quot;** Scout Instrumentation Loaded with plugin_id=#{self.config[:plugin_id]} for environment=#{RAILS_ENV}&quot;
           return true
         elsif temp.is_a?(Hash)
-          hostname=`hostname`
+          hostname=`hostname`.chomp
           temp2=temp[hostname]
-          if temp.is_a?(Integer)
-            self.plugin_id=temp2
-            puts &quot;** Scout Instrumentation Loaded with plugin_id=#{self.plugin_id} for environment=#{RAILS_ENV} and hostname=#{hostname}&quot;
+          if temp2.is_a?(Integer)
+            self.config[:plugin_id]=temp2
+            puts &quot;** Scout Instrumentation Loaded with plugin_id=#{self.config[:plugin_id]} for environment=#{RAILS_ENV} and hostname=#{hostname}&quot;
             return true
           else
             puts &quot;** Could not load Scout Instrumentation for environment=#{RAILS_ENV} and hostname=#{hostname}&quot;
           end
         else  
-          puts &quot;** Could not load Scout Instrumentation for environment=#{RAILS_ENV}&quot;
+          puts &quot;** Scout Instrumentation disabled for environment=#{RAILS_ENV}&quot;
         end
         return false # if we got to here, there was no successful config file loading
       rescue </diff>
      <filename>lib/scout.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bffb62c52cc5a2bb4bd1ec585b11aa693ffd0931</id>
    </parent>
  </parents>
  <author>
    <name>Andre Lewis</name>
    <email>andre@highgroove.com</email>
  </author>
  <url>http://github.com/highgroove/scout_rails_instrumentation/commit/a6315b2f469c071afd6803ffa5dda63e3780d566</url>
  <id>a6315b2f469c071afd6803ffa5dda63e3780d566</id>
  <committed-date>2009-02-19T21:28:20-08:00</committed-date>
  <authored-date>2009-02-19T21:28:20-08:00</authored-date>
  <message>plugin configuration implemented</message>
  <tree>693b60e9a947252dabde63b79a5a398f7e1bd2db</tree>
  <committer>
    <name>Andre Lewis</name>
    <email>andre@highgroove.com</email>
  </committer>
</commit>
