Sending a copy of log messages to the app log
This commit is contained in:
parent
58ab5f1073
commit
88b4189731
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue