Stop creating empty TCP log

This commit is contained in:
Ilya Fedin
2025-12-01 15:37:19 +00:00
committed by John Preston
parent 113115f58c
commit d74074a21b
2 changed files with 0 additions and 16 deletions

View File

@@ -32,7 +32,6 @@ public:
enum LogDataType {
LogDataMain,
LogDataDebug,
LogDataTcp,
LogDataMtp,
LogDataCount
@@ -54,7 +53,6 @@ QString _logsFilePath(LogDataType type, const QString &postfix = QString()) {
switch (type) {
case LogDataMain: path += u"log"_q + postfix + u".txt"_q; break;
case LogDataDebug: path += u"DebugLogs/log"_q + postfix + u".txt"_q; break;
case LogDataTcp: path += u"DebugLogs/tcp"_q + postfix + u".txt"_q; break;
case LogDataMtp: path += u"DebugLogs/mtp"_q + postfix + u".txt"_q; break;
}
return path;
@@ -245,7 +243,6 @@ NEW LOGGING INSTANCE STARTED!!!\n\
QString postfix = QString("_%4_%5").arg((part * switchEach) / 60, 2, 10, QChar('0')).arg((part * switchEach) % 60, 2, 10, QChar('0'));
reopen(LogDataDebug, dayIndex, postfix);
reopen(LogDataTcp, dayIndex, postfix);
reopen(LogDataMtp, dayIndex, postfix);
}
@@ -520,11 +517,6 @@ void writeDebug(const QString &v) {
#endif
}
void writeTcp(const QString &v) {
const auto msg = QString("%1 %2\n").arg(_logsEntryStart(), v);
_logsWrite(LogDataTcp, msg);
}
void writeMtp(int32 dc, const QString &v) {
const auto expanded = [&] {
const auto bare = MTP::isTemporaryDcId(dc)