all repos — honk @ b9f3da80576aab1db76a5aac89da57290f28fc81

my fork of honk

small logging fix
Ted Unangst tedu@tedunangst.com
Sun, 14 Apr 2019 22:53:26 -0400
commit

b9f3da80576aab1db76a5aac89da57290f28fc81

parent

b3556d661546bf88f1b84927b74f633f8d798ea6

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M activity.goactivity.go

@@ -184,19 +184,19 @@ return jsonfindmap(j, []string{key})

} func savedonk(url string, name, media string) *Donk { - log.Printf("saving donk: %s", url) var donk Donk row := stmtFindFile.QueryRow(url) err := row.Scan(&donk.FileID) if err == nil { return &donk } + log.Printf("saving donk: %s", url) if err != nil && err != sql.ErrNoRows { - log.Printf("err querying: %s", err) + log.Printf("error querying: %s", err) } resp, err := http.Get(url) if err != nil { - log.Printf("errer fetching %s: %s", url, err) + log.Printf("error fetching %s: %s", url, err) return nil } defer resp.Body.Close()