12345678910111213 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- module Mixin
- module StartFinishLogger
- include ::Mixin::RailsLogger
- def log_start_finish(level, prefix)
- logger.public_send(level, "#{prefix} started.")
- yield
- logger.public_send(level, "#{prefix} finished.")
- end
- end
- end
|