Skip to content

Commit

Permalink
convert to use non-static reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Jan 3, 2025
1 parent fa261e5 commit dd51fc4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]" )
);

}
Expand All @@ -66,15 +66,15 @@ 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" );
}

/**
* Called after the scheduler has registered all schedules
*/
@Override
public void onStartup() {
logger.debug( "[onStartup] ==> The CSRF TokenReaper has been started" );
this.logger.debug( "[onStartup] ==> The CSRF TokenReaper has been started" );
}

}

0 comments on commit dd51fc4

Please sign in to comment.