remoteLogger should only call its parent

This commit is contained in:
Zero King
2017-07-14 03:42:50 +00:00
parent 84cf8dae0a
commit 2efa71fda6

View File

@@ -81,7 +81,7 @@ func (r *remoteLogger) run() {
err = iErr
break
}
GlobalLogger.LogTextChan <- &LogText{
r.parent.LogTextChan <- &LogText{
logBigFile.FieldName + "-pastebin",
[]byte(u.String()),
}
@@ -90,7 +90,7 @@ func (r *remoteLogger) run() {
}
}
if err != nil {
GlobalLogger.LogTextChan <- &LogText{
r.parent.LogTextChan <- &LogText{
logBigFile.FieldName + "-pastebin-fail",
[]byte(err.Error()),
}