chore: Improve logging for ip look up and audit logs [CW-2145] (#7512)

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Vishnu Narayanan
2023-07-27 16:48:30 +05:30
committed by GitHub
parent 65190422c4
commit 9636478c2a
2 changed files with 10 additions and 4 deletions

View File

@@ -19,6 +19,9 @@ class Api::V1::Accounts::AuditLogsController < Api::V1::Accounts::EnterpriseAcco
else
Current.account.associated_audits.none
end
return if audit_logs_enabled?
Rails.logger.warn("Audit logs are disabled for account #{Current.account.id}")
end
def audit_logs_enabled?