From 714e55388921c3663dd65d0347e8b52d0664cc2d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 8 May 2018 16:44:42 -0300 Subject: [PATCH] Bug 20402: only output if verbose flag is set Signed-off-by: Jonathan Druart --- misc/cronjobs/cleanup_database.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl index b8f550fb5e..3e6c504532 100755 --- a/misc/cronjobs/cleanup_database.pl +++ b/misc/cronjobs/cleanup_database.pl @@ -341,7 +341,7 @@ if ($oauth_tokens) { require Koha::OAuthAccessTokens; my $count = int Koha::OAuthAccessTokens->search({ expires => { '<=', time } })->delete; - say "Removed $count expired OAuth2 tokens"; + say "Removed $count expired OAuth2 tokens" if $verbose; } exit(0); -- 2.39.5