Commit b0f9a507 authored by Aard's avatar Aard

[log] Expose correct priority to journal

parent 69ac4445
...@@ -25,7 +25,7 @@ void SsuLog::print(int priority, QString message){ ...@@ -25,7 +25,7 @@ void SsuLog::print(int priority, QString message){
QByteArray ba = message.toUtf8(); QByteArray ba = message.toUtf8();
const char *ca = ba.constData(); const char *ca = ba.constData();
if (sd_journal_print(LOG_INFO, "ssu: %s", ca) < 0 && fallbackLogPath != ""){ if (sd_journal_print(priority, "ssu: %s", ca) < 0 && fallbackLogPath != ""){
QFile logfile; QFile logfile;
QTextStream logstream; QTextStream logstream;
logfile.setFileName(fallbackLogPath); logfile.setFileName(fallbackLogPath);
......
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