Skip to content

Commit

Permalink
Just fixing identifier reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
asergeyev committed Dec 14, 2017
1 parent 853821f commit 8b12b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/joewalnes/websocketd/libwebsocketd"
)

func log(l *libwebsocketd.LogScope, level libwebsocketd.LogLevel, levelName string, category string, msg string, args ...interface{}) {
func logfunc(l *libwebsocketd.LogScope, level libwebsocketd.LogLevel, levelName string, category string, msg string, args ...interface{}) {
if level < l.MinLevel {
return
}
Expand All @@ -38,7 +38,7 @@ func log(l *libwebsocketd.LogScope, level libwebsocketd.LogLevel, levelName stri
func main() {
config := parseCommandLine()

log := libwebsocketd.RootLogScope(config.LogLevel, log)
log := libwebsocketd.RootLogScope(config.LogLevel, logfunc)

if config.DevConsole {
if config.StaticDir != "" {
Expand Down

0 comments on commit 8b12b77

Please sign in to comment.