Use compact.join strategy here too
This commit is contained in:
committed by
GitHub
parent
8b913068de
commit
ab7c6c6540
@@ -21,11 +21,7 @@ class Mrsk::Commands::Auditor < Mrsk::Commands::Base
|
|||||||
|
|
||||||
private
|
private
|
||||||
def audit_log_file
|
def audit_log_file
|
||||||
if config.destination
|
[ "mrsk", config.service, config.destination, "audit.log" ].compact.join("-")
|
||||||
"mrsk-#{config.service}-#{config.destination}-audit.log"
|
|
||||||
else
|
|
||||||
"mrsk-#{config.service}-audit.log"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def tagged_record_line(line)
|
def tagged_record_line(line)
|
||||||
|
|||||||
Reference in New Issue
Block a user