Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

actually use zap correctly. #8

Merged
merged 1 commit into from
Mar 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ func main() {
confPort, err := jsonparser.GetInt(config, "sftp", "port")
if err != nil {
// default to the bindPort default from the flag section
logger.Get().Debugw("could not find sftp port, falling back to \"2022\"", zap.Error(err))111
logger.Get().Debugw("could not find sftp port, falling back to \"2022\"", zap.Error(err))
} else {
// set bindPort to the confPort value
logger.Get().Infow("using config daemon port", zap.String("port", zap.int(confPort))
logger.Get().Infow("using config daemon port", zap.Int("port", int(confPort)))
bindPort = int(confPort)
}
}
}

uid, _ := strconv.Atoi(u.Uid)
Expand Down