Browse Source

bug fix - xray log

mhsanaei 3 weeks ago
parent
commit
f7f95ffbae
1 changed files with 1 additions and 1 deletions
  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 {