Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing logging in initial daemon script

  • Loading branch information...
commit 8a3937f142eaceb293b3ca4be9abf97a273fd3f4 1 parent 72a059f
Ryan Bates authored September 29, 2008

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  generators/daemon/templates/script.rb
6  generators/daemon/templates/script.rb
... ...
@@ -1,11 +1,11 @@
1 1
 #!/usr/bin/env ruby
2 2
 
3  
-#You might want to change this
  3
+# You might want to change this
4 4
 ENV["RAILS_ENV"] ||= "production"
5 5
 
6 6
 require File.dirname(__FILE__) + "/../../config/environment"
7 7
 
8  
-$running = true;
  8
+$running = true
9 9
 Signal.trap("TERM") do 
10 10
   $running = false
11 11
 end
@@ -13,7 +13,7 @@
13 13
 while($running) do
14 14
   
15 15
   # Replace this with your code
16  
-  ActiveRecord::Base.logger << "This daemon is still running at #{Time.now}.\n"
  16
+  ActiveRecord::Base.logger.info "This daemon is still running at #{Time.now}.\n"
17 17
   
18 18
   sleep 10
19 19
 end

0 notes on commit 8a3937f

Please sign in to comment.
Something went wrong with that request. Please try again.