just adding what we've discussed
```ruby
level = failed ? :error : :debug
::Logging.logger['glue'].add ::Logging::level_num(level), log_message 
```