From dd51fc417a0c7dae33a11ef94b13484333c8c000 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Fri, 3 Jan 2025 12:16:41 -0500 Subject: [PATCH] convert to use non-static reference --- .../boxlang/modules/csrf/schedulers/TokenReaper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ortus/boxlang/modules/csrf/schedulers/TokenReaper.java b/src/main/java/ortus/boxlang/modules/csrf/schedulers/TokenReaper.java index b339f38..e8c4d30 100644 --- a/src/main/java/ortus/boxlang/modules/csrf/schedulers/TokenReaper.java +++ b/src/main/java/ortus/boxlang/modules/csrf/schedulers/TokenReaper.java @@ -50,13 +50,13 @@ public void configure() { .call( CSRFService::reap ) .every( LongCaster.cast( moduleSettings.getAsNumber( KeyDictionary.reapFrequency ) ), TimeUnit.MINUTES ) .onFailure( - ( task, exception ) -> logger.error( + ( task, exception ) -> this.logger.error( "An error occurred while attempt to perform cleanup on expired CSRF tokens. " + exception.getMessage(), exception ) ) .onSuccess( - ( task, result ) -> logger.debug( "Task [Reaped Expired Tokens]" ) + ( task, result ) -> this.logger.debug( "Task [Reaped Expired Tokens]" ) ); } @@ -66,7 +66,7 @@ public void configure() { */ @Override public void onShutdown() { - logger.debug( "[onShutdown] ==> The CSRF TokenReaper has been shutdown" ); + this.logger.debug( "[onShutdown] ==> The CSRF TokenReaper has been shutdown" ); } /** @@ -74,7 +74,7 @@ public void onShutdown() { */ @Override public void onStartup() { - logger.debug( "[onStartup] ==> The CSRF TokenReaper has been started" ); + this.logger.debug( "[onStartup] ==> The CSRF TokenReaper has been started" ); } }