Sending a copy of log messages to the app log

This commit is contained in:
Christoph Haas 2017-08-14 19:07:35 +02:00
parent 58ab5f1073
commit 88b4189731

View file

@ -27,5 +27,6 @@ class Log < ApplicationRecord
logger.error "Could not log to database - validation errors: #{log.errors.to_a}" unless log.valid?
log.save
# log
logger.info "Log.log - #{log.section} - #{log.message}"
end
end