Skip to content

logging: fix log file management for tests#6673

Merged
kit-ty-kate merged 1 commit intoocaml:masterfrom
rjbou:log-file-management
Sep 11, 2025
Merged

logging: fix log file management for tests#6673
kit-ty-kate merged 1 commit intoocaml:masterfrom
rjbou:log-file-management

Conversation

@rjbou
Copy link
Copy Markdown
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
Copy Markdown
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.

@rjbou rjbou force-pushed the log-file-management branch from 1fd3d20 to f241506 Compare September 11, 2025 14:26
@rjbou rjbou requested a review from kit-ty-kate September 11, 2025 14:26
@kit-ty-kate kit-ty-kate merged commit 628d259 into ocaml:master Sep 11, 2025
46 checks passed
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