small logging fix
Ted Unangst tedu@tedunangst.com
Sun, 14 Apr 2019 22:53:26 -0400
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
activity.go
→
activity.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()