Method: God::Configurable.complain
- Defined in:
- lib/god/configurable.rb
.complain(text, c = nil) ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/god/configurable.rb', line 42 def self.complain(text, c = nil) watch = c.watch rescue nil msg = "" msg += "#{watch.name}: " if watch msg += text msg += " for #{c.friendly_name}" if c applog(watch, :error, msg) false end |