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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user