Commit cf0e76a9 authored by Lisa's avatar Lisa
Browse files

Fixed two small errors that prevented the log system from being initialized in some situations.

parent 5bd506e0
......@@ -241,6 +241,8 @@ void Backend::setStatus(Backend::Status s, QObject * cO, const char * cS)
Akabei::ErrorQueue::instance()->appendError(Error(Error::PermissionError, tr("An authorization error occurred: %1").arg(PolkitQt1::Authority::instance()->errorDetails())));
setStatus(Backend::StatusBroken);
}
AkabeiLogLine::initialize( Akabei::Config::instance()->useSyslog(), Akabei::Config::instance()->logFile() );
return;
} else {
qDebug() << "WE HERE";
......
......@@ -119,6 +119,7 @@ void AkabeiLogLine::initialize(bool syslog, const QString& filename)
if (isSyslog) {
openlog("akabei", LOG_PID | LOG_CONS, LOG_USER); /* open connection for a generic user service */
systemInitialized = true;
} else {
pathToFile = filename;
logStream.open(filename.toUtf8().constData(), std::ios::app);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment