Pārlūkot izejas kodu

bug fix - xray log

mhsanaei 3 nedēļas atpakaļ
vecāks
revīzija
f7f95ffbae
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 {