Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Duplicate logging on 0.12.1 #1645
After updating to Padrino 0.12.1 from 0.12.0 the logger sends duplicated lines:
Before a log message was like this:
Now after the upgrade, I get the log duplicated with a different format:
I am not sure if this will help to locate the problem, but I noticed that the extra logging line is also showing GET calls to the stylesheets, which were not rendered before.
that was fast!
I tested your fix in my sample repo. I can confirm that
However in my case, the funny thing is that I do get the same problem using
I did reproduce the
Unfortunately rackup server cannot be fixed without monkey-patching Rack. It provides no options to skip adding logging middleware in development environment: https://github.com/rack/rack/blob/15796c4a1529ac2ca756431d7e63394bf379f407/lib/rack/server.rb#L217
Monkey patch would be something like this: