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

Intermediate results should be logged #55

Open
Tritlo opened this issue Jul 30, 2021 · 3 comments
Open

Intermediate results should be logged #55

Tritlo opened this issue Jul 30, 2021 · 3 comments
Labels
Enhancement New feature or request Haskell Issue is in our Haskell Code

Comments

@Tritlo
Copy link
Owner

Tritlo commented Jul 30, 2021

Right now we wait until the very end to do any output, which is a shame if it found something already but then crashes or something. We should output patches to the output folder when they are found, to have some record at least.

@lapplislazuli
Copy link
Collaborator

Hmm, isn't this a bit of a scope creep?

At the moment the (genetic) search does search and not much else, but then it would do patch-handling too.

Also, I must say that at the moment endemic either fails at the beginning, or runs through 😅 I have not seen it failing somewhere in the middle.

@Tritlo
Copy link
Owner Author

Tritlo commented Jul 30, 2021

True, but if I see a "1 success" now and stop_on_results is false, it keeps going. If I then do Ctrl-C, there's no way for me to see what that fix was 😢

@lapplislazuli
Copy link
Collaborator

I agree, I think it's worth it.

May we put a delegate to pretty print in Utils and put it in all search algorithms?
So like printIntermediate :: Efix -> IO () in Endemic.Search.Util that is then called downstream?

And have it maybe printed on Verbose or Audit.

@lapplislazuli lapplislazuli added Enhancement New feature or request Haskell Issue is in our Haskell Code labels Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Haskell Issue is in our Haskell Code
Projects
None yet
Development

No branches or pull requests

2 participants