From b9b1e3fe61ec7509f9531bf0542f9629f4fa4c0a Mon Sep 17 00:00:00 2001 From: V2Ray Date: Tue, 13 Oct 2015 21:45:09 +0200 Subject: [PATCH] Fix line separator --- common/log/access.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/log/access.go b/common/log/access.go index 516692fac..6d24ca5b8 100644 --- a/common/log/access.go +++ b/common/log/access.go @@ -3,6 +3,8 @@ package log import ( "log" "os" + + "github.com/v2ray/v2ray-core/common/platform" ) // AccessStatus is the status of an access request from clients. @@ -63,7 +65,7 @@ func (logger *fileAccessLogger) Run() { func newFileAccessLogger(path string) accessLogger { file, err := os.OpenFile(path, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600) if err != nil { - log.Printf("Unable to create or open file (%s): %v\n", path, err) + log.Printf("Unable to create or open file (%s): %v%s", path, err, platform.LineSeparator()) return nil } return &fileAccessLogger{