#1133 Fixed syslog regression.

This commit is contained in:
XMRig 2019-08-23 00:16:11 +07:00
parent 83c7fad882
commit 39e69c2723
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ public:
if (!m_backends.empty()) {
for (ILogBackend *backend : m_backends) {
backend->print(level, m_buf, offset, size, true);
backend->print(level, txt.c_str(), offset, txt.size(), false);
backend->print(level, txt.c_str(), offset ? (offset - 11) : 0, txt.size(), false);
}
}
else {

View file

@ -37,7 +37,7 @@ class SysLog : public ILogBackend
{
public:
SysLog();
~SysLog();
~SysLog() override;
protected:
void print(int level, const char *line, size_t offset, size_t size, bool colors) override;