Skip to content

More useful logs#181

Merged
marco-m-pix4d merged 4 commits into
masterfrom
update-to-gokit
Apr 15, 2026
Merged

More useful logs#181
marco-m-pix4d merged 4 commits into
masterfrom
update-to-gokit

Conversation

@marco-m-pix4d

@marco-m-pix4d marco-m-pix4d commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Many quality of life improvements and adapt to (I think) changes to which fields the GoogleChat API actually fills.

User-visible changes in the logs:

  • logs are now timestamped (see commit comment for rationale)
  • logs are more readable with same length level string
  • logs are cleaned up
  • logs contain URL to GoogleChat space to which the message has been sent.

Better reviewed commit-per-commit

TODO

-PCI-4096

Comment thread cogito/ghcommitsink.go
Note: since cogito uses the go-kit/googlechat and go-kit/github wrappers,
the change in the go-kit/retry API is invisible from the point of view of cogito.

cogito: adapt to changes in go-kit/googlechat
cogito: adapt to changes in go-kit/github
We were not printing the timestamp because the Concourse web UI already decorates each
build log line with a timestamp.

On the other hand, when copying and pasting the build log to report a problem, one has
to resort to a screenshot instead of just using the plain text, because the decoration
timestamps are not copied to text.

Thus this commit adds back the timestamps.

In addition, to increase readability, we use a uniform lenght for the log level
(eg INF and DBG, instead of INFO and DEBUG).

A note regarding the timestamp zone. It will be output in UTC, although the Concourse
UI shows the local time.

In my understanding, this is due to the fact that cogito, as any Concourse resource,
runs in a Docker container.
@marco-m-pix4d marco-m-pix4d merged commit 7901bed into master Apr 15, 2026
1 check passed
@marco-m-pix4d marco-m-pix4d deleted the update-to-gokit branch April 15, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants