Package gfit: Improve Create error message.
authorFlorian Forster <ff@octo.it>
Sun, 28 Jan 2018 19:56:59 +0000 (20:56 +0100)
committerFlorian Forster <ff@octo.it>
Sun, 28 Jan 2018 19:56:59 +0000 (20:56 +0100)
gfit/gfit.go

index d1aacb6..227f463 100644 (file)
@@ -120,7 +120,7 @@ func (c *Client) DataSourceCreate(ctx context.Context, dataSource *fitness.DataS
                        }
                        return DataStreamID(dataSource), nil
                }
-               log.Errorf(ctx, "c.Service.Users.DataSources.Create() = (%+v, %v)", res, err)
+               log.Errorf(ctx, "c.Service.Users.DataSources.Create(%q) = (%+v, %v)", dataSource, res, err)
                return "", err
        }
        return res.DataStreamId, nil