Skip to content

Commit

Permalink
Merge pull request #275 from /issues/274-audit-properties
Browse files Browse the repository at this point in the history
Fix #274: Remove powerauth prefix from audit properties
  • Loading branch information
banterCZ authored Mar 22, 2024
2 parents 3d446b5 + 45817c0 commit 212e741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void cleanup() {
/**
* Scheduled flush of persistence of audit data.
*/
@Scheduled(fixedDelayString = "${audit.flush.delay.fixed:1000}", initialDelayString = "${powerauth.audit.flush.delay.initial:1000}")
@Scheduled(fixedDelayString = "${audit.flush.delay.fixed:1000}", initialDelayString = "${audit.flush.delay.initial:1000}")
public void scheduledFlush() {
logger.debug("Scheduled audit log flush called");
flush();
Expand All @@ -283,7 +283,7 @@ public void scheduledFlush() {
/**
* Scheduled cleanup of audit data in database.
*/
@Scheduled(fixedDelayString = "${audit.cleanup.delay.fixed:3600000}", initialDelayString = "${powerauth.audit.cleanup.delay.initial:1000}")
@Scheduled(fixedDelayString = "${audit.cleanup.delay.fixed:3600000}", initialDelayString = "${audit.cleanup.delay.initial:1000}")
public void scheduledCleanup() {
logger.debug("Scheduled audit log cleanup called");
cleanup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@SpringBootTest(classes = TestApplication.class, properties = {
"audit.db.table.param.enabled=true",
"audit.db.cleanup.days=-1", // time shift to the future to enable cleanup test
"powerauth.audit.cleanup.delay.initial=60000" // delay the job start due to slow builds
"audit.cleanup.delay.initial=60000" // delay the job start due to slow builds
})
@Sql(scripts = "/db_schema.sql")
class AuditParamEnabledTest {
Expand Down

0 comments on commit 212e741

Please sign in to comment.