Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Enable logging conflicts with Padrino logging? #647

Closed
jayswain opened this Issue Oct 16, 2012 · 2 comments

Comments

Projects
None yet
2 participants

I'd like to read the server log.

I set "enable :logging" at the bottom of config.rb

when I spin up the server (middleman server) I get the output expected. Until I hit the server, where I get this trace:

$ middleman server
Please install rb-fsevent gem for Mac OSX FSEvents support
Using polling (Please help us to support your system better than that.)
Using inline Guardfile.
Guard is now watching at '/Users/jayswain/workspace/cancer-therapy-institute/cancer-therapy-institute'
== Activating: Middleman::Features::Lorem
== Extension: Middleman::Base
== Extension: Middleman::CoreExtensions::Builder
== Extension: Middleman::CoreExtensions::RackMap
== Extension: Middleman::CoreExtensions::Features
== Extension: Middleman::CoreExtensions::Data
== Extension: Middleman::CoreExtensions::Rendering
== Extension: Padrino::Rendering
== Extension: Middleman::Renderers::Slim
== Extension: Middleman::Renderers::Haml
== Extension: Middleman::Renderers::Sass
== Extension: Middleman::Renderers::Markdown
== Extension: Middleman::Renderers::CoffeeScript
== Extension: Middleman::Renderers::Liquid
== Extension: Middleman::CoreExtensions::Compass
== Extension: Middleman::CoreExtensions::Sprockets
== Extension: Middleman::CoreExtensions::Assets
== Extension: Middleman::CoreExtensions::DefaultHelpers
== Extension: Padrino::Helpers
== Extension: Middleman::CoreExtensions::Routing
== Extension: Middleman::CoreExtensions::FrontMatter
== Extension: Middleman::Features::Lorem
== The Middleman is standing watch on port 4567

Thin web server (v1.2.11 codename Bat-Shit Crazy)
Maximum connections set to 1024
Listening on 0.0.0.0:4567, CTRL+C to stop
NoMethodError - undefined method debug' for nil:NilClass: /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/padrino-core-0.10.5/lib/padrino-core/application/rendering.rb:280:inresolve_template'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/base.rb:167:in process_request' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/core_extensions/routing.rb:83:inblock (2 levels) in page'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in call' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:inblock in compile!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in []' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:inblock (3 levels) in route!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in route_eval' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:inblock (2 levels) in route!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in block in process_route' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:incatch'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in process_route' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:inblock in route!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in each' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:inroute!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in dispatch!' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:inblock in call!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in block in invoke' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:incatch'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in invoke' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:incall!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in call' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/rack-1.3.6/lib/rack/urlmap.rb:52:inblock in call'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/rack-1.3.6/lib/rack/urlmap.rb:46:in each' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/rack-1.3.6/lib/rack/urlmap.rb:46:incall'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/rack-1.3.6/lib/rack/head.rb:9:in call' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/rack-1.3.6/lib/rack/commonlogger.rb:20:incall'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in call' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thin-1.2.11/lib/thin/connection.rb:84:inblock in pre_process'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thin-1.2.11/lib/thin/connection.rb:82:in catch' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thin-1.2.11/lib/thin/connection.rb:82:inpre_process'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thin-1.2.11/lib/thin/connection.rb:57:in process' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thin-1.2.11/lib/thin/connection.rb:42:inreceive_data'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in start' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thin-1.2.11/lib/thin/server.rb:159:instart'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/rack-1.3.6/lib/rack/handler/thin.rb:13:in run' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/rack-1.3.6/lib/rack/server.rb:265:instart'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman.rb:197:in start_server' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/guard.rb:58:inblock in server_start'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/guard.rb:57:in fork' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/guard.rb:57:inserver_start'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/guard.rb:47:in start' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/guard-0.6.3/lib/guard.rb:66:insupervised_task'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/guard-0.6.3/lib/guard.rb:43:in block in start' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/guard-0.6.3/lib/guard.rb:43:ineach'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/guard-0.6.3/lib/guard.rb:43:in start' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/guard.rb:34:instart'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/lib/middleman/cli.rb:55:in server' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thor-0.14.6/lib/thor/task.rb:22:inrun'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thor-0.14.6/lib/thor/invocation.rb:118:in invoke_task' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thor-0.14.6/lib/thor.rb:263:indispatch'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/thor-0.14.6/lib/thor/base.rb:389:in start' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/bin/middleman:52:instart_cli!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/bin/middleman:47:in did_locate_middleman_project' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/bin/middleman:20:inlocate_middleman_root!'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/gems/middleman-2.0.14/bin/middleman:70:in <top (required)>' /Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/bin/middleman:23:inload'
/Users/jayswain/.rvm/gems/ruby-1.9.2-p318@cancertherapyinstitute.com/bin/middleman:23:in `

'
127.0.0.1 - - [16/Oct/2012 16:07:45] "GET /sinatra/500.png HTTP/1.1" 200 31056 0.0030
127.0.0.1 - - [16/Oct/2012 16:07:45] "GET /favicon.ico HTTP/1.1" 404 61 0.000

After a little debugging, it looks like theres a conflict in Padrino resolve_template.

Is there a better way to read the server log?

middleman (2.0.14)

Owner

tdreyno commented Oct 16, 2012

Is this still an issue in 3.0?

not when I run a fresh build and use the --verbose option. upgrading now, thanks.

@jayswain jayswain closed this Oct 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment