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

Construct fake module path targets for some events #2807

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

the10thWiz
Copy link
Collaborator

Constructs fake module path targets for events generated by macros. This puts these events in the rocket::codegen::{module_path!()} module, which enables filtering them out by checking the rocket (or rocket::codegen) prefix, or more precise filtering by looking at the original module path.

This also makes a couple of minor code style changes to the trace module.

This commit prefixes the target of all trace events emitted by codegen
with `rocket::codegen::{kind}::{module_path!()}`, where `kind` is the
kind of codegen item that was generated (i.e, `route`). This increases
the consistency of trace messages emitted by Rocket so that they all
begin with 'rocket::'.
@SergioBenitez SergioBenitez merged commit 6857b82 into rwf2:master Jun 11, 2024
16 checks passed
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