summaryrefslogtreecommitdiff
path: root/kimap/sessionlogger.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2013-10-04 11:21:44 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2013-10-04 11:21:44 (GMT)
commit8e5a810e432ae46a238151839c9f8d07405b93d9 (patch)
tree30fc4e62e0f3c8da540025b5b8d2af05bb6a8b92 /kimap/sessionlogger.cpp
parent6b1fda16546e6d77c49112ecbba22103f8d859c0 (diff)
downloadlibcalendaring-8e5a810e432ae46a238151839c9f8d07405b93d9.tar.gz
Applied kimap from 3ca54b6 (kolab/stable/4.11.2)
Diffstat (limited to 'kimap/sessionlogger.cpp')
-rw-r--r--kimap/sessionlogger.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/kimap/sessionlogger.cpp b/kimap/sessionlogger.cpp
index 715a5da..2c4bd07 100644
--- a/kimap/sessionlogger.cpp
+++ b/kimap/sessionlogger.cpp
@@ -20,6 +20,8 @@
#include "sessionlogger_p.h"
+#include <KDebug>
+
#include <unistd.h>
using namespace KIMAP;
@@ -33,7 +35,9 @@ SessionLogger::SessionLogger()
m_file.setFileName( qgetenv( "KIMAP_LOGFILE" )
+ '.' + QString::number( getpid() )
+ '.' + QString::number( m_id ) );
- m_file.open( QFile::WriteOnly );
+ if (!m_file.open( QFile::WriteOnly )) {
+ kDebug()<<" m_file can be open in write only";
+ }
}
SessionLogger::~SessionLogger()
@@ -57,6 +61,3 @@ void SessionLogger::disconnectionOccured()
{
m_file.write( "X\n" );
}
-
-
-