Commits

Anonymous committed c74476e Merge

Merging 11:ab3c10fd4cfb and 12:c3061ce0583d

  • Participants
  • Parent commits ab3c10f, c3061ce

Comments (0)

Files changed (2)

 typedef libconfig::FileIOException file_io_ex;
 
 typedef std::bad_alloc alloc_ex;
+typedef std::bad_cast  cast_ex;
 
 typedef std::logic_error logic_ex;
 
                   data.reset();
                   break;
                }
-               functions.logger->logwork(data);
+               try {
+                functions.logger->logwork(data);
+
+               } catch(cast_ex& ex) {
+                LOG(CRITIC) << "Logger " << functions.logger->internal->name <<": Cannot cast data packages at:" 
+                            << data.get() << ". Discarding data."; 
+               }
                data.reset();
 #ifdef DEBUG_QUEUES
                debug_queue_t_size("logger_queue",logger_queue);