Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No ability to print multiple logs #377

Open
jsardev opened this issue Jun 21, 2024 · 5 comments
Open

No ability to print multiple logs #377

jsardev opened this issue Jun 21, 2024 · 5 comments

Comments

@jsardev
Copy link

jsardev commented Jun 21, 2024

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? 🤔

@morgante
Copy link
Contributor

I'm not sure what you mean by this. Please provide the commands and code you use to reproduce.

@jsardev
Copy link
Author

jsardev commented Jun 27, 2024

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.

@morgante
Copy link
Contributor

Ah ok, the studio only shows the first log currently.

They should all show up on the CLI.

@jsardev
Copy link
Author

jsardev commented Jun 27, 2024

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() 🤔
CleanShot 2024-06-27 at 21 37 18@2x

@morgante
Copy link
Contributor

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

No branches or pull requests

2 participants