mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
debug: fix empty file logs
Change-Id: I10099c3db5f48fb147f05e434b3131cdb4acf8f5
This commit is contained in:
parent
52c6089513
commit
6ddbce1506
1 changed files with 2 additions and 2 deletions
|
@ -149,8 +149,8 @@ MainApplication::fileDebug(QFile* debugFile)
|
|||
&lrc::api::BehaviorController::debugMessageReceived,
|
||||
[debugFile](const QString& message) {
|
||||
if (debugFile->open(QIODevice::WriteOnly | QIODevice::Append)) {
|
||||
auto msg = (message + "\n").toStdString().c_str();
|
||||
debugFile->write(msg, qstrlen(msg));
|
||||
auto msg = (message + "\n").toStdString();
|
||||
debugFile->write(msg.c_str(), qstrlen(msg.c_str()));
|
||||
debugFile->close();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue