More debugging of batch converter startup.
[dcpomatic.git] / src / lib / log_entry.cc
index 7c0f68787c2d39366452b0ef41963b98a66e0c7d..99443e34af54fbf55165630c0e77fba811677355 100644 (file)
@@ -28,6 +28,7 @@ int const LogEntry::TYPE_ERROR        = 0x4;
 int const LogEntry::TYPE_DEBUG_DECODE = 0x8;
 int const LogEntry::TYPE_DEBUG_ENCODE = 0x10;
 int const LogEntry::TYPE_TIMING       = 0x20;
+int const LogEntry::TYPE_DEBUG_EMAIL  = 0x40;
 
 using std::string;
 
@@ -42,14 +43,14 @@ LogEntry::get () const
 {
        SafeStringStream s;
        if (_type & TYPE_TIMING) {
-               s << _time.tv_sec << ":" << _time.tv_usec;
+               s << _time.tv_sec << ":" << _time.tv_usec << " ";
        } else {
                char buffer[64];
                time_t const sec = _time.tv_sec;
                struct tm* t = localtime (&sec);
                strftime (buffer, 64, "%c", t);
                string a (buffer);
-               s << a.substr (0, a.length() - 1) << N_(": ");
+               s << a << N_(": ");
        }
 
        if (_type & TYPE_ERROR) {