mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
Don't crash if init_agent() fails.
This commit is contained in:
@@ -5814,7 +5814,13 @@ sub init_agent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $agent && $success ) {
|
||||||
$logger->info("Agent " . $agent->name . " (" . $agent->uuid . ") is ready");
|
$logger->info("Agent " . $agent->name . " (" . $agent->uuid . ") is ready");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$logger->warning("Failed to initialize the agent. The API may be down. Please try again.");
|
||||||
|
}
|
||||||
|
|
||||||
return $agent, $success;
|
return $agent, $success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user