From edbaa080f1d9dbd72541b05b7a8d26f1681b8b9b Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 20 May 2015 11:09:30 +0800 Subject: [PATCH] update the string --- admin.go | 2 +- app.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin.go b/admin.go index 52388c76..64d7fe34 100644 --- a/admin.go +++ b/admin.go @@ -468,6 +468,6 @@ func (admin *adminApp) Run() { err = http.ListenAndServe(addr, nil) } if err != nil { - BeeLogger.Critical("Admin ListenAndServe: ", err, fmt.Sprint(os.Getpid())) + BeeLogger.Critical("Admin ListenAndServe: ", err, fmt.Sprintf("%d", os.Getpid())) } } diff --git a/app.go b/app.go index 6c1eeab6..8fc320ad 100644 --- a/app.go +++ b/app.go @@ -93,7 +93,7 @@ func (app *App) Run() { server.Server = app.Server err := server.ListenAndServeTLS(HttpCertFile, HttpKeyFile) if err != nil { - BeeLogger.Critical("ListenAndServeTLS: ", err) + BeeLogger.Critical("ListenAndServeTLS: ", err, fmt.Sprintf("%d", os.Getpid())) time.Sleep(100 * time.Microsecond) endRunning <- true } @@ -108,7 +108,7 @@ func (app *App) Run() { } err := server.ListenAndServe() if err != nil { - BeeLogger.Critical("ListenAndServe: ", err, fmt.Sprint(os.Getpid())) + BeeLogger.Critical("ListenAndServe: ", err, fmt.Sprintf("%d", os.Getpid())) time.Sleep(100 * time.Microsecond) endRunning <- true }