实现节点运行日志上传

This commit is contained in:
GoEdgeLab
2020-10-09 11:06:43 +08:00
parent 4245c73c47
commit 904d1f4b41
16 changed files with 184 additions and 63 deletions

View File

@@ -3,7 +3,7 @@ package nodes
import (
"bytes"
"github.com/TeaOSLab/EdgeNode/internal/caches"
"github.com/iwind/TeaGo/logs"
"github.com/TeaOSLab/EdgeNode/internal/logs"
"github.com/iwind/TeaGo/types"
"net/http"
"strconv"
@@ -139,7 +139,7 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) {
return
}
logs.Println("read from cache failed: " + err.Error())
logs.Error("REQUEST_CACHE", "read from cache failed: "+err.Error())
return
}