Used log to log instead of fmt

This commit is contained in:
Daniel
2023-12-08 23:15:10 -08:00
parent 84e29da258
commit 05149961b5
+1 -1
View File
@@ -303,7 +303,7 @@ func (c *Controller) withUser(next http.Handler) http.Handler {
}
if err := c.dbc.Create(&user).Error; err != nil {
fmt.Println("User created via LDAP:", username)
log.Println("User created via LDAP:", username)
}
} else {
_ = writeResp(w, r, spec.NewError(40, "invalid username `%s`", username))