mirror of
https://github.com/outbackdingo/databunker.git
synced 2026-01-27 10:18:45 +00:00
fix log messages
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user