Вопрос

I'm using Logger through config and this line:

configatron.log.level = Logger::Warn

gives me the error:

`<top (required)>': uninitialized constant Logger::Warn (NameError)

Even if I require 'logger' at the top.

what gives?

< Ruby N00B >

Это было полезно?

Решение

Capitalization matters. It should be Logger::WARN.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top