From 84f0cfb9dd48f31ba3dc7ec0e511e57200b23da8 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Mon, 9 Jul 2018 15:12:10 +0300 Subject: [PATCH] TT#37113 Lower the debug level of 'FLUSH PRIVILEGES' There are a lot of flushing privileges so in order not to flood the console move it to debug level. Change-Id: I98e3247881393d7892799cc23c2a4e5dc865185a --- sbin/ngcp-sync-grants | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/ngcp-sync-grants b/sbin/ngcp-sync-grants index 32226c39..92721c02 100755 --- a/sbin/ngcp-sync-grants +++ b/sbin/ngcp-sync-grants @@ -342,7 +342,6 @@ sub grants_helper { my $user = $TEMP_GRANT_USER; my $host = $TEMP_GRANT_HOST; - flush_privs(); set_user_protected_password($user, $host); $dbh->do("REVOKE ALL PRIVILEGES, GRANT OPTION FROM '$user'\@'$host'"); @@ -456,7 +455,7 @@ sub check_grants { } sub flush_privs { - log_info("flush privileges"); + log_debug("flush privileges"); $dbh->do("FLUSH PRIVILEGES") or die "Cannot flush privileges: ".$DBI::errstr;