if ( level <= Loglevel )
{
ostringstream msg;
- msg << "Error while trying to de-serialize Serviceholder object: " << errMsg << endl;
+ msg << "Error while trying to de-serialize Serviceholder object: " << errMsg << ". Continue without recovering state from old services!" << endl;
log_error(msg.str());
}
}
}
catch( const boost::archive::archive_exception& e )
{
+ // There is a corrupted object file, continue without recovering old Services' state.
Log->print_exception_deserialize(e.what());
ifs.close();
- return -1;
+ return 0;
}
+
SerializeServiceContainer::Ptr service_container(_service_container);
IPAddrHelp = IPAddrHelper::Ptr(_ip_addr_helper);
ifs.close();