Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Macros to periodically warn #482

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

vlovich
Copy link
Contributor

@vlovich vlovich commented Mar 29, 2023

While I was at it, I decided to cleanup some spots where we weren't using JSG_WARN_ONCE. I also improved those
macros to accept a variadic number of macro args (btw I noticed LOG_IF_INTERESTING and LOG_NOSENTRY may be misusing __VA_ARGS__ in the 0 variadic args case - missing a ## but I decided not to touch them to avoid scope creep).

I seem to have lost permission to the main workerd repo so I've forked for now until I figure out how to restore.

Hmm... bugs.ew-test is failing when I migrate

Worker tried to Send 'Expect' header

in edgeworker.c++ for some reason. The error gets printed in the logs but doesn't match the @LOG test directive. Hmm...

vlovich added 2 commits March 28, 2023 20:00
Replace existing call sites that are basically just calling the same
thing without a macro.
@vlovich vlovich force-pushed the vlovich/warn-periodically-macro branch from 59d9d63 to 0fe3b9e Compare March 29, 2023 04:17
@vlovich vlovich marked this pull request as ready for review March 29, 2023 16:19
@vlovich vlovich merged commit 941e662 into cloudflare:main Mar 30, 2023
@vlovich vlovich deleted the vlovich/warn-periodically-macro branch March 30, 2023 18:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants