1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-28931 --verbose option is too verbose

GetOpt::Long bundling option for convenient one-char verbosity levels:

  -v    General verbosity (file and execute operations)
  -vv   High verbosity (algorithmic considerations)
  -vvv  Debug verbosity (anything else)
This commit is contained in:
Aleksey Midenkov
2022-07-18 23:16:17 +03:00
parent 83f7d25c44
commit ce7820eb83
6 changed files with 39 additions and 30 deletions

View File

@ -46,7 +46,7 @@ sub mtr_ping_port ($);
sub mtr_ping_port ($) {
my $port= shift;
mtr_verbose("mtr_ping_port: $port");
mtr_verbose2("mtr_ping_port: $port");
if (IS_WINDOWS && USE_NETPING)
{
@ -56,12 +56,12 @@ sub mtr_ping_port ($) {
$ping->port_number($port);
if ($ping->ping("localhost",0.1))
{
mtr_verbose("USED");
mtr_verbose2("USED");
return 1;
}
else
{
mtr_verbose("FREE");
mtr_verbose2("FREE");
return 0;
}
}
@ -84,12 +84,12 @@ sub mtr_ping_port ($) {
if ( connect(SOCK, $paddr) )
{
close(SOCK); # FIXME check error?
mtr_verbose("USED");
mtr_verbose2("USED");
return 1;
}
else
{
mtr_verbose("FREE");
mtr_verbose2("FREE");
return 0;
}
}