incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1171038 - /incubator/deltacloud/trunk/server/lib/sinatra/sinatra_verbose.rb
Date Thu, 15 Sep 2011 10:37:29 GMT
Author: mfojtik
Date: Thu Sep 15 10:37:29 2011
New Revision: 1171038

URL: http://svn.apache.org/viewvc?rev=1171038&view=rev
Log:
Sinatra: Added 'debug' method alias (sounds more familiar)

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

Modified: incubator/deltacloud/trunk/server/lib/sinatra/sinatra_verbose.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/sinatra/sinatra_verbose.rb?rev=1171038&r1=1171037&r2=1171038&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/sinatra/sinatra_verbose.rb (original)
+++ incubator/deltacloud/trunk/server/lib/sinatra/sinatra_verbose.rb Thu Sep 15 10:37:29 2011
@@ -25,6 +25,8 @@ module Sinatra
         puts sprintf("\033[1;34m[INFO: #{caller_method_name}]\033[0m: %s", message.inspect)
       end
 
+      alias :debug :info
+
       def warn(message)
         puts sprintf("\033[1;31m[WARN: #{caller_method_name}]\033[0m: %s", message.inspect)
       end



Mime
View raw message