mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-07 10:10:32 +08:00
增加edge-node accesslog命令,用来在本地查看访问日志
This commit is contained in:
@@ -80,6 +80,13 @@ Loop:
|
||||
return nil
|
||||
}
|
||||
|
||||
// 发送到本地
|
||||
if sharedHTTPAccessLogViewer.HasConns() {
|
||||
for _, accessLog := range accessLogs {
|
||||
sharedHTTPAccessLogViewer.Send(accessLog)
|
||||
}
|
||||
}
|
||||
|
||||
// 发送到API
|
||||
if this.rpcClient == nil {
|
||||
client, err := rpc.SharedRPC()
|
||||
|
||||
Reference in New Issue
Block a user