Skip to content

Send debug logs to Humio for all builds #3220

@ehmicky

Description

@ehmicky

@netlify/build and @netlify/config print debug logs when the NETLIFY_BUILD_DEBUG environment variable is set.

This is very useful, but this requires a manual action from users which adds some back-and-forth with support. Those debug logs should always be available instead, although still hidden to users by default.

I would suggest implementing this by sending those logs to Humio (through Firebase) since this is the current solution for the same problem in the buildbot. We would still print those logs to stdout but only when NETLIFY_BUILD_DEBUG is set, since reading logs in the UI is much easier for debugging than in Humio.

We should be careful about:

  • Performance. This would add many HTTP requests to each build, so we might consider batching those requests.
  • Robustness. Builds should not fail nor print any error message if one of those HTTP requests fail.

Metadata

Metadata

Assignees

Labels

type: chorework needed to keep the product and development running smoothly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions