MT#22211 ngcp-sync-constants suppress cleartext passwords to stdout

* passwords are printed to stdout only in verbose mode

Change-Id: If31e84300b2a1b694b03ccc8dc8a7a1a0f2930b8
changes/31/7831/2
Kirill Solomko 10 years ago
parent e58a4ff61e
commit 6e281aeeb1

@ -195,7 +195,11 @@ SQL
my ($count, $match) = $sth_sel->fetchrow_array();
if ($count && !$match) {
log_info(sprintf "%s => %s", $user, $pass);
if ($debug) {
log_debug(sprintf "%s => %s", $user, $pass);
} else {
log_info(sprintf "%s", $user);
}
unless ($test_mode) {
my $rows = $sth_upd->execute($pass, $user)
or die "Cannot update: ".$DBI::errstr;

Loading…
Cancel
Save