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
When writing pipelines using the Go SDK, it's not always clear exactly what the resulting graphql query (or queries) will look like. This is especially needed when debugging, and learning Dagger.
Solution
Change the engine logger so that it prints raw graphql queries, rather than only buildkit-specific information.
Reacted by Erik Sipsma, Alvise, Marcos Nils and Sam Alba
We'd have to hook into the buildkit progress logs. There's a chance that's easy for someone familiar with those, but even then it may be easier said than done. If someone's not familiar with buildkit progress logs, then no, not small probably.
Or other option is to abstract on top of buildkit progress logs and use our own logging system (similar to Europa). Good thing to do, not small.
tl;dr no, I don't think so. Happy to be wrong though
What if you had to choose between two completely different log streams: 1) buildkit or 2) graphql, and we made no attempt to integrate the two. You just get one bytestream or the other. Would that make it simpler?
For example in my case I would gladly turn off buildkit logs in exchange for a clean log of graphql queries as they are being routed - more relevant to my debugging.
What if you had to choose between two completely different log streams: 1) buildkit or 2) graphql, and we made no attempt to integrate the two. You just get one bytestream or the other. Would that make it simpler?
I think so. It would solve the problem of the logs otherwise being interleaved (on char-by-char basis). You could add an optional to dagger.Connect, which would then enable printing from codegen client.
So yeah pretty small then.
Only con left I can think of is backcompat in future if we change logging more, but I am inclined to not care, too minor relative to benefit.
Activity
shykes commentedon Oct 27, 2022
Would this qualify as size/small @vito @sipsma ?
sipsma commentedon Oct 27, 2022
We'd have to hook into the buildkit progress logs. There's a chance that's easy for someone familiar with those, but even then it may be easier said than done. If someone's not familiar with buildkit progress logs, then no, not small probably.
Or other option is to abstract on top of buildkit progress logs and use our own logging system (similar to Europa). Good thing to do, not small.
tl;dr no, I don't think so. Happy to be wrong though
shykes commentedon Oct 27, 2022
What if you had to choose between two completely different log streams: 1) buildkit or 2) graphql, and we made no attempt to integrate the two. You just get one bytestream or the other. Would that make it simpler?
For example in my case I would gladly turn off buildkit logs in exchange for a clean log of graphql queries as they are being routed - more relevant to my debugging.
sipsma commentedon Oct 27, 2022
I think so. It would solve the problem of the logs otherwise being interleaved (on char-by-char basis). You could add an optional to
dagger.Connect, which would then enable printing from codegen client.So yeah pretty small then.
Only con left I can think of is backcompat in future if we change logging more, but I am inclined to not care, too minor relative to benefit.
shykes commentedon Mar 26, 2024
This is addressed by new TUI. Yay!