Skip to content

Conversation

@balat
Copy link
Member

@balat balat commented Nov 14, 2025

No description provided.

(* Lwt_log_core.add_rule "os*" Lwt_log_js.Debug; *)
Lwt_log_core.add_rule "%%%MODULE_NAME%%%*" Lwt_log_js.Debug
(* Lwt_log_core.add_rule "*" Lwt_log_js.Debug *)
Logs.set_level (Some Logs.Debug)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not equivalent. Before it was setting a rule for %%%MODULE_NAME%%%*, which either meant nothing or changed the level of some of the user's sources. Now it sets the log level for all the sources, including the ones in Eliom.

Perhaps we should create the log source mentioned in the comment above ? Or perhaps the new behavior is fine considering it's the result of adding <debugmode/> to the config ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I think it's ok to set the log level for everything when debugmode is true.
This is in the template anyway. The purpose of this code was mainly to give examples in comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok!

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.

3 participants