Skip to content

Commit

Permalink
blog: use log for publishToMataroa
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored Jul 28, 2024
1 parent d243175 commit e0c8fb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ func publishToMataroa(posts []post) {
p, resp := mustGetMataroaPost(post)
if p.Ok {
p, resp = mustPatchMataroaPost(post)
fmt.Printf("[UPDATED] (code=%d): %+v\n", resp.StatusCode, p)
log.Printf("[UPDATED] (code=%d): %+v\n", resp.StatusCode, p)
} else if resp.StatusCode == 404 {
p, resp = mustPostMataroaPost(post)
fmt.Printf("[NEW] (code=%d): %+v\n", resp.StatusCode, p)
log.Printf("[NEW] (code=%d): %+v\n", resp.StatusCode, p)
} else {
fmt.Printf("[ERROR] %s: %+v\n", post.slug, resp)
log.Printf("[ERROR] %s: %+v\n", post.slug, resp)
}

if resp.StatusCode != 200 {
Expand Down

0 comments on commit e0c8fb3

Please sign in to comment.