瀏覽代碼

bug fix - xray log

mhsanaei 3 周之前
父節點
當前提交
f7f95ffbae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xray/log_writer.go

+ 1 - 1
xray/log_writer.go

@@ -32,7 +32,7 @@ func (lw *LogWriter) Write(m []byte) (n int, err error) {
 		return len(m), nil
 	}
 
-	regex := regexp.MustCompile(`^(\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}) \[([^\]]+)\] (.+)$`)
+	regex := regexp.MustCompile(`^(\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}\.\d{6}) \[([^\]]+)\] (.+)$`)
 	messages := strings.Split(message, "\n")
 
 	for _, msg := range messages {