Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 38e2b73

Browse files
Merge pull request #3 from BrandonRomano/fix-logger
Set the logger globally in LogListenAndServe func
2 parents a20f8cb + 6cdd812 commit 38e2b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graceful.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var (
108108
// LogListenAndServe logs using the logger and then calls ListenAndServe
109109
func LogListenAndServe(s Server, loggers ...Logger) {
110110
if hs, ok := s.(*http.Server); ok {
111-
logger := getLogger(loggers...)
111+
logger = getLogger(loggers...)
112112
logger.Printf(ListeningFormat, hs.Addr)
113113
}
114114

0 commit comments

Comments
 (0)