From 0ef357ebd7f592cdebe50c89853204f9522ccd2b Mon Sep 17 00:00:00 2001 From: astaxie Date: Sun, 11 Sep 2016 21:02:03 +0800 Subject: [PATCH] session:output error --- session/sess_file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/session/sess_file.go b/session/sess_file.go index 91acfcd4..132f5a00 100644 --- a/session/sess_file.go +++ b/session/sess_file.go @@ -88,10 +88,9 @@ func (fs *FileSessionStore) SessionRelease(w http.ResponseWriter) { var f *os.File if err == nil { f, err = os.OpenFile(path.Join(filepder.savePath, string(fs.sid[0]), string(fs.sid[1]), fs.sid), os.O_RDWR, 0777) - SLogger.Println(err) } else if os.IsNotExist(err) { f, err = os.Create(path.Join(filepder.savePath, string(fs.sid[0]), string(fs.sid[1]), fs.sid)) - SLogger.Println(err) + } else { return }