mirror of
https://github.com/internetee/registry.git
synced 2025-06-04 03:37:28 +02:00
Provide ApiUser name as whodunnit
This commit is contained in:
parent
a56dc03565
commit
a44466b0a6
1 changed files with 4 additions and 0 deletions
|
@ -398,5 +398,9 @@ module Epp
|
|||
logger.error(([exception.message] + exception.backtrace).join($INPUT_RECORD_SEPARATOR))
|
||||
notify_airbrake(exception)
|
||||
end
|
||||
|
||||
def user_for_paper_trail
|
||||
current_user ? current_user.id_role_username : 'anonymous'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue