incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1159118 - in /incubator/deltacloud/trunk/server: lib/sinatra/rack_syslog.rb server.rb
Date Thu, 18 Aug 2011 09:47:12 GMT
Author: mfojtik
Date: Thu Aug 18 09:47:12 2011
New Revision: 1159118

URL: http://svn.apache.org/viewvc?rev=1159118&view=rev
Log:
Moved sinatra settings to configure block from rack_syslog

Modified:
    incubator/deltacloud/trunk/server/lib/sinatra/rack_syslog.rb
    incubator/deltacloud/trunk/server/server.rb

Modified: incubator/deltacloud/trunk/server/lib/sinatra/rack_syslog.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/sinatra/rack_syslog.rb?rev=1159118&r1=1159117&r2=1159118&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/sinatra/rack_syslog.rb (original)
+++ incubator/deltacloud/trunk/server/lib/sinatra/rack_syslog.rb Thu Aug 18 09:47:12 2011
@@ -24,11 +24,6 @@ class SyslogFile < File
 
 end
 
-if settings.environment == :production
-  $stdout = SyslogFile.new
-  $stderr = $stdout
-end
-
 # Code bellow was originaly copied from Rack::CommonLogger
 # https://raw.github.com/rack/rack/master/lib/rack/commonlogger.rb
 

Modified: incubator/deltacloud/trunk/server/server.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/server.rb?rev=1159118&r1=1159117&r2=1159118&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/server.rb (original)
+++ incubator/deltacloud/trunk/server/server.rb Thu Aug 18 09:47:12 2011
@@ -58,6 +58,8 @@ configure :production do
   disable :logging
   enable :show_errors
   set :dump_errors, false
+  $stdout = SyslogFile.new
+  $stderr = $stdout
 end
 
 configure :development do



Mime
View raw message