Skip to content

Commit a8273bc

Browse files
author
Till Brehm
committed
Improved logging in mysql_clientdb_plugin.inc.php
1 parent 8bf47f6 commit a8273bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/plugins-available/mysql_clientdb_plugin.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,11 @@ function process_host_list($action, $database_name, $database_user, $database_pa
162162
}
163163
}
164164

165+
$app->log("PASSWORD SET FOR '".$link->escape_string($database_user)."'@'$db_host' success? " . ($success ? 'yes' : 'no'), LOGLEVEL_DEBUG);
166+
165167
if($success == true){
166168
$link->query("FLUSH PRIVILEGES");
167-
$app->log("PASSWORD SET FOR '".$link->escape_string($database_user)."'@'$db_host' success? " . ($success ? 'yes' : 'no'), LOGLEVEL_DEBUG);
168-
}
169+
}
169170

170171
// Set the grant
171172
if(!$link->query("GRANT " . $grants . " ON `".$database_name."`.* TO '".$link->escape_string($database_user)."'@'$db_host'")) $success = false;

0 commit comments

Comments
 (0)