gritql
gritql copied to clipboard
No ability to print multiple logs
I'm a bit confused about why running log logs only the first log and then nothing else. Could all the log executions be visible in stdout? 🤔
I'm not sure what you mean by this. Please provide the commands and code you use to reproduce.
engine marzano(0.1)
language js
string_fragment() as $fragment where {
log(message = $fragment)
}
console.log("Hello, Dan")
console.log("Hello, James")
https://app.grit.io/studio?key=4-_6OE96nQtRDugIa2Hep
@morgante I was expecting to see logs for both occurences, but when I run this via grit apply - I only see the first log execution.
Ah ok, the studio only shows the first log currently.
They should all show up on the CLI.
Yeah I provided a studio link for faster showcase of the code, but I'm testing it via CLI and it doesn't work there – I'm only getting the first log() 🤔
Ah it's possibly related to this: https://github.com/getgrit/gritql/blob/main/crates/marzano_messenger/src/emit.rs#L141