I would
```ruby
::Logging.logger['glue'].add ::Logging::level_num(failed ? :error : :debug), 
                             log_message 
```