Skip to content

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Sep 4, 2025

@rjbou rjbou changed the title loggign: fix log file management for tests logging: fix log file management for tests Sep 4, 2025
@rjbou rjbou force-pushed the log-file-management branch from c27ce61 to 75cb3f0 Compare September 5, 2025 16:59
@rjbou rjbou requested a review from kit-ty-kate September 5, 2025 16:59
@rjbou rjbou marked this pull request as ready for review September 5, 2025 17:03
@rjbou rjbou added the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Sep 5, 2025
@rjbou rjbou force-pushed the log-file-management branch from 75cb3f0 to 1fd3d20 Compare September 5, 2025 17:22
@rjbou rjbou removed the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Sep 5, 2025
@rjbou rjbou added this to the 2.5.0~alpha1 milestone Sep 5, 2025
Copy link
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Negative values support for OPAMDEBUG was added in d59bf85. This behaviour isn't really documented (mostly used for ourselves anyway) and i personally didn't know about it.

I feel like, instead of using Stdlib.abs everywhere but the piece of code that needs it in OpamConsole, we should probably make it so that OpamCoreConfig.debug_level is always >= 0 and have a separate field to encode the sign. Something called OpamCoreConfig.repeatable_debug : bool or something to make it clearer.

Otherwise the rest of the changes are obviously correct.

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

Successfully merging this pull request may close these issues.

2 participants