Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Question: Is Grails Console stealing logs? #77

Open
kdybicz opened this issue Feb 17, 2023 · 4 comments
Open

Question: Is Grails Console stealing logs? #77

kdybicz opened this issue Feb 17, 2023 · 4 comments

Comments

@kdybicz
Copy link

kdybicz commented Feb 17, 2023

If console is running on a working server, then wouldn't this code steal some of the System output (ie. logs from working jobs) from the output stream and never put them back?

@sheehan
Copy link
Owner

sheehan commented Feb 21, 2023

Yeah System.out is redirected to the web console while console code is executing. I was going to switch that to use TeeOutputStream or something like that, but never got to it.

@kdybicz
Copy link
Author

kdybicz commented Feb 21, 2023

I was thinking about doing it myself. I even forked this repo, but the code is too far gone for my skills... with the fs package gone I tried to update all dependencies and gulp script to do the job, but there seems to be a bit strange circular dependency sort off in this repo needed to build new package... and I gave up. Any chance you will be running any sort of maintenance of this repo anytime soon?

@kdybicz
Copy link
Author

kdybicz commented Feb 25, 2023

@sheehan if I would provide you a PR with updated node dependencies, gulp files converted to "latest standards" and some cleanup in grails3/plugin code, would you be keen to release new version of plugin?

FYI: my changes simply remove hijacking System.out, but I would be ok if you would like to make it configurable instead.

FYI 2: I tried my luck with TeeOutputSteam, but regardless the approach I was unable to get consistent results in case of concurrent code execution in 2+ console windows.

@kdybicz
Copy link
Author

kdybicz commented Feb 27, 2023

PR in question #78 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants