Skip to content

Commit

Permalink
Don't pass verbosity for withlevel call
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Oct 28, 2024
1 parent 43d9326 commit 1e92b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Servers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function listen!(f, listener::Listener;
conns_lock = ReentrantLock()
ready_to_accept = Threads.Event()
if verbose > 0
tsk = @_spawn_interactive LoggingExtras.withlevel(Logging.Debug; verbosity=verbose) do
tsk = @_spawn_interactive LoggingExtras.withlevel(Logging.Debug) do
listenloop(f, listener, conns, tcpisvalid, max_connections, readtimeout, access_log, ready_to_accept, conns_lock, verbose)
end
else
Expand Down
2 changes: 1 addition & 1 deletion src/clientlayers/MessageRequest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function messagelayer(handler)
try
# if debugging, enable by wrapping request in custom logger logic
resp = if verbose > 0
LoggingExtras.withlevel(Logging.Debug; verbosity=verbose) do
LoggingExtras.withlevel(Logging.Debug) do
handler(req; verbose, response_stream, kw...)
end
else
Expand Down

2 comments on commit 1e92b1a

@quinnj
Copy link
Member Author

@quinnj quinnj commented on 1e92b1a Oct 28, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request updated: JuliaRegistries/General/118233

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.10.9 -m "<description of version>" 1e92b1a849feb8ed9244f069d79c98c9d52c7aff
git push origin v1.10.9

Please sign in to comment.