mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Disable group call logs to console.
This commit is contained in:
parent
466aa5a14d
commit
c04cdff7f7
1 changed files with 3 additions and 0 deletions
|
@ -2361,6 +2361,7 @@ bool GroupCall::tryCreateController() {
|
||||||
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
||||||
auto callLogPath = callLogFolder + qsl("/last_group_call_log.txt");
|
auto callLogPath = callLogFolder + qsl("/last_group_call_log.txt");
|
||||||
auto callLogNative = QDir::toNativeSeparators(callLogPath);
|
auto callLogNative = QDir::toNativeSeparators(callLogPath);
|
||||||
|
descriptor.config.need_log = true;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
descriptor.config.logPath.data = callLogNative.toStdWString();
|
descriptor.config.logPath.data = callLogNative.toStdWString();
|
||||||
#else // Q_OS_WIN
|
#else // Q_OS_WIN
|
||||||
|
@ -2370,6 +2371,8 @@ bool GroupCall::tryCreateController() {
|
||||||
#endif // Q_OS_WIN
|
#endif // Q_OS_WIN
|
||||||
QFile(callLogPath).remove();
|
QFile(callLogPath).remove();
|
||||||
QDir().mkpath(callLogFolder);
|
QDir().mkpath(callLogFolder);
|
||||||
|
} else {
|
||||||
|
descriptor.config.need_log = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(("Call Info: Creating group instance"));
|
LOG(("Call Info: Creating group instance"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue