deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1227194 - /deltacloud/trunk/server/lib/sinatra/rack_syslog.rb
Date Wed, 04 Jan 2012 15:47:25 GMT
Author: mfojtik
Date: Wed Jan  4 15:47:25 2012
New Revision: 1227194

URL: http://svn.apache.org/viewvc?rev=1227194&view=rev
Log:
Core: Fixed error in logging (credits to Jan Provaznik)

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

Modified: deltacloud/trunk/server/lib/sinatra/rack_syslog.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/sinatra/rack_syslog.rb?rev=1227194&r1=1227193&r2=1227194&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/sinatra/rack_syslog.rb (original)
+++ deltacloud/trunk/server/lib/sinatra/rack_syslog.rb Wed Jan  4 15:47:25 2012
@@ -13,11 +13,11 @@ class SyslogFile < File
   end
 
   def info(msg)
-    @log.info(msg)
+    @log.info("%s", msg)
   end
 
   def err(msg)
-    @log.err(msg)
+    @log.err("%s", msg)
   end
 
   alias :warning :err



Mime
View raw message