Skip to content

Commit

Permalink
Merge pull request #283 from Scalingo/fix/logs/376/token_configuration
Browse files Browse the repository at this point in the history
feat(logs): add timestamp to the logs URL
  • Loading branch information
EtienneM authored Sep 23, 2022
2 parents d0ebc42 + 8724a57 commit c8216d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## To Be Released

* feat(logs): add timestamp to the logs URL [#283](https://github.com/Scalingo/go-scalingo/pull/283)

## 5.2.1

* fix(notifiers): add missing fields in `Notifier` [#278](https://github.com/Scalingo/go-scalingo/pull/278)
Expand Down
7 changes: 4 additions & 3 deletions logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ func (c *Client) Logs(ctx context.Context, logsURL string, n int, filter string)
URL: u.Scheme + "://" + u.Host,
Endpoint: u.Path,
Params: map[string]interface{}{
"token": u.Query().Get("token"),
"n": n,
"filter": filter,
"token": u.Query().Get("token"),
"timestamp": u.Query().Get("timestamp"),
"n": n,
"filter": filter,
},
}
return c.ScalingoAPI().Do(ctx, req)
Expand Down

0 comments on commit c8216d8

Please sign in to comment.