Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Enable logging conflicts with Padrino logging? #647

Closed
jayswain opened this Issue · 2 comments

2 participants

@jayswain

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:in
resolve_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:in
block (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:in
block 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:in
block (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:in
block (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:in
catch'
/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:in
block 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:in
route!'
/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:in
block 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:in
catch'
/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:in
call!'
/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:in
block 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:in
call'
/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:in
call'
/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:in
block 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:in
pre_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:in
receive_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:in
run'
/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:in
start'
/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:in
start'
/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:in
block 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:in
server_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:in
supervised_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:in
each'
/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:in
start'
/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:in
run'
/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:in
dispatch'
/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:in
start_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:in
locate_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:in
load'
/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)

@tdreyno
Owner

Is this still an issue in 3.0?

@jayswain

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

@jayswain jayswain closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.