Skip to content

Commit

Permalink
Log instead of puts
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Sep 19, 2024
1 parent a9abae3 commit af2e397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/services/vault_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def enable_engine(mount, type)
client.sys.mount(mount, type, "#{type} secrets engine")
end
rescue Vault::HTTPError => e
puts "Error enabling #{type} engine: #{e}"
Rails.logger.error "Error enabling #{type} engine: #{e}"
end

def kv_mount
Expand Down

0 comments on commit af2e397

Please sign in to comment.