Rolling 20210119

This commit is contained in:
jomjol
2021-01-19 20:14:37 +01:00
parent 2530691347
commit 3869da9d06
10 changed files with 29 additions and 12 deletions

View File

@@ -12,8 +12,10 @@ ClassLogFile LogFile("/sdcard/log/message", "log_%Y-%m-%d.txt");
void ClassLogFile::WriteHeapInfo(std::string _id)
{
std::string _zw;
_zw = "\t" + _id + "\t" + getESPHeapInfo();
std::string _zw = "\t" + _id;
if (loglevel > 0)
_zw = _zw + "\t" + getESPHeapInfo();
WriteToFile(_zw);
}
@@ -188,4 +190,5 @@ ClassLogFile::ClassLogFile(std::string _logroot, std::string _logfile)
logfile = _logfile;
doLogFile = true;
retentionInDays = 10;
loglevel = 0;
}