We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9aca69 commit 2268c59Copy full SHA for 2268c59
config.ru
@@ -5,5 +5,15 @@
5
# just execute it from the command line.
6
7
require File.expand_path("../config/boot.rb", __FILE__)
8
-use Rack::CommonLogger, logger if ENV['RACK_ENV'] == 'production'
+
9
+# use ruby standard logger because padrino logger has odd error in my production environment.
10
+require 'logger'
11
+class ::Logger; alias_method :write, :<<; end
12
13
+if ENV['RACK_ENV'] == 'production'
14
+ logger = ::Logger.new("log/production.log")
15
+ logger.level = ::Logger::WARN
16
+ use Rack::CommonLogger, logger
17
+end
18
19
run Padrino.application
0 commit comments