Skip to content

Commit

Permalink
fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stremovsky committed Aug 24, 2024
1 parent f31bde4 commit 3672158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/storage/sqlite-storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (dbobj SQLiteDB) getOneRecord(q string, values []interface{}) (bson.M, erro
defer tx.Rollback()
rows, err := tx.Query(q, values...)
if err == sql.ErrNoRows {
log.Println("nothing found")
log.Println("Nothing found")
return nil, nil
} else if err != nil {
return nil, err
Expand Down Expand Up @@ -774,7 +774,7 @@ func (dbobj SQLiteDB) getListDo(q string, values []interface{}) ([]bson.M, error
defer tx.Rollback()
rows, err := tx.Query(q, values...)
if err == sql.ErrNoRows {
log.Println("nothing found")
log.Println("Nothing found")
return nil, nil
} else if err != nil {
return nil, err
Expand Down
4 changes: 2 additions & 2 deletions src/users_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (e mainEnv) userCreate(w http.ResponseWriter, r *http.Request, ps httproute
if e.conf.Generic.CreateUserWithoutAccessToken == false {
// anonymous user can not create user record, check token
if e.enforceAuth(w, r, event) == "" {
log.Println("failed to create user, access denied, try to configure Create_user_without_access_token\n")
log.Println("Failed to create user, access denied, try to configure Create_user_without_access_token")
return
}
}
Expand Down Expand Up @@ -401,7 +401,7 @@ func (e mainEnv) userPrelogin(w http.ResponseWriter, r *http.Request, ps httprou
fmt.Fprintf(w, `{"status":"error","result":"record not found","captchaurl":"%s"}`, captcha)
return
}
log.Println("user record not found, returning ok status")
log.Println("User record not found, returning ok status")
}
w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.WriteHeader(200)
Expand Down

0 comments on commit 3672158

Please sign in to comment.