lastCRLCheck = current;
}
- std::shared_ptr<Job> job = jp->fetchJob();
-
+ std::shared_ptr<Job> job;
+ try {
+ job = jp->fetchJob();
+ } catch ( std::exception &e ){
+ logger::errorf ( "Exception while fetchJob: %s", e.what() );
+ }
if( !job ) {
logger::note( "Nothing to work on." );
sleep( 5 );
#include <log/logger.hpp>
PostgresJobProvider::PostgresJobProvider( const std::string& server, const std::string& user, const std::string& password, const std::string& database ):
- c("dbname="+database+" host="+server+" user="+user+" password="+password){
+ c("dbname="+database+" host="+server+" user="+user+" password=" + password + " client_encoding=UTF-8 application_name=cassiopeia-client"){
// TODO better connection string generation??
}