Merge branch '15028-cwl-v1.1' refs #15028
[arvados.git] / services / api / lib / audit_logs.rb
index ddbf2d01dd37c6ad885c7c1f3ac2f3761003f0bb..886c8873891c044270313e3563c73e4fe950c5cb 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'current_api_client'
 require 'db_current_time'
 
@@ -40,8 +44,8 @@ module AuditLogs
   end
 
   def self.tidy_in_background
-    max_age = Rails.configuration.max_audit_log_age
-    max_batch = Rails.configuration.max_audit_log_delete_batch
+    max_age = Rails.configuration.AuditLogs.MaxAge.to_i
+    max_batch = Rails.configuration.AuditLogs.MaxDeleteBatch
     return if max_age <= 0 || max_batch <= 0
 
     exp = (max_age/14).seconds