try {
tryConfigureAndStart();
Must(up());
- }
- catch (const std::exception &e) { // standardized exceptions
+ } catch (const std::exception &e) { // standardized exceptions
if (!handleFinalizeFailure(e.what()))
throw; // rethrow for upper layers to handle
- }
- catch (...) { // all other exceptions
+ } catch (...) { // all other exceptions
if (!handleFinalizeFailure("unrecognized exception"))
throw; // rethrow for upper layers to handle
}
Adaptation::Ecap::ServiceRep::handleFinalizeFailure(const char *error)
{
const bool salvage = cfg().bypass;
- const int level = salvage ? DBG_IMPORTANT : DBG_CRITICAL;
+ const int level = salvage ? DBG_IMPORTANT :DBG_CRITICAL;
const char *kind = salvage ? "optional" : "essential";
debugs(93, level, "ERROR: failed to start " << kind << " eCAP service: " <<
cfg().uri << ":\n" << error);
debugs(93, level, "WARNING: " << kind << " eCAP service is " <<
"down after initialization failure: " << cfg().uri);
- return true; // tell the caller to ignore the problem because we handled it
+ return true; // tell the caller to ignore the problem because we handled it
}
bool Adaptation::Ecap::ServiceRep::probed() const