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

Removed basicConfig & fixed working of --log-file arg #131

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

mzfr
Copy link
Contributor

@mzfr mzfr commented Apr 3, 2024

I followed the discussion in this(#129) thread and decided to send a PR.

With these changes, logs are both displayed on stdout and stored in the logfile when the --log-file parameter is provided.

Would it be more appropriate to solely store them in a file without displaying them on stdout if the parameter is provided?

@marxin
Copy link
Owner

marxin commented Apr 4, 2024

Thanks! Looks good to me. Please fix the ruff issue and I'm going to merge it:
cvise.py:360:5: E303 [*] Too many blank lines (2)

@mzfr
Copy link
Contributor Author

mzfr commented Apr 4, 2024

@marxin What are your thoughts about the following:

Would it be more appropriate to solely store them in a file without displaying them on stdout if the parameter is provided?

@marxin
Copy link
Owner

marxin commented Apr 4, 2024

Would it be more appropriate to solely store them in a file without displaying them on stdout if the parameter is provided?

Yeah, I would welcome it, it makes fully sense and it's even documented in that way.

If --log-file argument is given, then all the debug related logs will be
redirect to the log file and only the final stats/results be displayed
on stdout.
@mzfr
Copy link
Contributor Author

mzfr commented Apr 4, 2024

The latest commit in this pull request should address the behavior we discussed.

@marxin marxin merged commit 6926c7c into marxin:master Apr 4, 2024
12 checks passed
@marxin
Copy link
Owner

marxin commented Apr 4, 2024

Note I also redirected pass statistics and the final test-case to the log file: 30a38f4.
Hope it's the expected behavior for users, what do you think?

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

Successfully merging this pull request may close these issues.

None yet

2 participants