Let App be aware of destination

This commit is contained in:
Tobias Bühlmann
2023-03-03 15:29:00 +01:00
parent cec3468f50
commit 170562c7e7
5 changed files with 43 additions and 21 deletions

View File

@@ -21,7 +21,11 @@ class Mrsk::Commands::Auditor < Mrsk::Commands::Base
private
def audit_log_file
"mrsk-#{config.service}-audit.log"
if config.destination
"mrsk-#{config.service}-#{config.destination}-audit.log"
else
"mrsk-#{config.service}-audit.log"
end
end
def tagged_record_line(line)