You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's hard to figure out which operation logs belong too -- especially with lazy evaluation.
Something I'm discovering as I continue building is that the lazy execution makes debugging tricky -- it's sometimes difficult to tell what code in my build app generated which build instructions as expressed in the output.
Proposal: Always dump logs to a file. Wrap errors in "See full logs at `
I think this deserves more discussion. In a production setting it may not be acceptable to have a "secret log file" accumulate somewhere. But maybe there's a way to mitigate this.
IMO it would be better (but perhaps more difficult?) to 1) extract the relevant error message in the error itself, and 2) separately let users configure where and how to log
Proposal: Always dump logs to a file. Wrap errors in "See full logs at `
I think this deserves more discussion. In a production setting it may not be acceptable to have a "secret log file" accumulate somewhere. But maybe there's a way to mitigate this.
That's how npm/yarn does it, don't remember when exactly. You get an error and it says "go look at this file". It's a bit annoying but there's precedent in production.
Complaints about the enormous stack trace that's produced. Why have the base64 encoded content in the output? It could use some TLC so that it makes the error you're interested in easy to find.
It's unclear to others why layers are out of order. I presumed this was because it was some sort of multi stage docker build thing, but I don't actually know either 🙂
It's unclear to others why layers are out of order. I presumed this was because it was some sort of multi stage docker build thing, but I don't actually know either 🙂
If that's regarding engine logs getting out of order, I've assumed it's because of the async nature of the engine (concurrency and parallelism). 🙂
Activity
shykes commentedon Oct 28, 2022
I think this deserves more discussion. In a production setting it may not be acceptable to have a "secret log file" accumulate somewhere. But maybe there's a way to mitigate this.
IMO it would be better (but perhaps more difficult?) to 1) extract the relevant error message in the error itself, and 2) separately let users configure where and how to log
dolanor commentedon Nov 14, 2022
While we're at it, there is an active proposal for a structured logging integrated in the stdlib.
https://github.com/golang/proposal/blob/master/design/56345-structured-logging.md
talk: https://opensourcelive.withgoogle.com/events/go-day-2022?talk=talk2
helderco commentedon Nov 14, 2022
Yes please 🙂 I need JSON logs in the SDK to help improve how progress is shown to the user.
helderco commentedon Nov 14, 2022
That's how npm/yarn does it, don't remember when exactly. You get an error and it says "go look at this file". It's a bit annoying but there's precedent in production.
jpadams commentedon Mar 23, 2023
From users trying Dagger:
helderco commentedon Mar 29, 2023
If that's regarding engine logs getting out of order, I've assumed it's because of the async nature of the engine (concurrency and parallelism). 🙂