mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-22 18:54:43 +00:00
#1133 Fixed syslog regression.
This commit is contained in:
parent
83c7fad882
commit
39e69c2723
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue