We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 376d824 commit beecb14Copy full SHA for beecb14
1 file changed
internal/handler/strm.go
@@ -7,6 +7,7 @@ import (
7
"context"
8
"fmt"
9
"net/http"
10
+ "time"
11
12
"github.com/allegro/bigcache/v3"
13
)
@@ -63,6 +64,11 @@ func getHTTPStrmHandler() (StrmHandlerFunc, error) {
63
64
}
65
66
func alistStrmHandler(content string, alistAddr string) string {
67
+ startTime := time.Now()
68
+ defer func() {
69
+ logging.Debugf("获取 AlistStrm 重定向 URL 耗时:%s", time.Since(startTime))
70
+ }()
71
+
72
alistClient, err := service.GetAlistClient(alistAddr)
73
if err != nil {
74
logging.Warning("获取 AlistClient 失败:", err)
0 commit comments