Skip to content

Instantly share code, notes, and snippets.

@ryansch
Created April 20, 2011 04:14
Show Gist options
  • Select an option

  • Save ryansch/930329 to your computer and use it in GitHub Desktop.

Select an option

Save ryansch/930329 to your computer and use it in GitHub Desktop.
undefined method `[]' for nil:NilClass
The error occurred line 73 of /path/to/lib/ruby/gems/1.8/gems/mixlib-log-1.1.0/lib/mixlib/log.rb in method 'level' while executing:
71 def level(lv=nil)
72 if lv.nil?
** @@levels.find() {|l| logger.level==l[1]}[0]
74 else
75 self.level=(lv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment