Skip to content

Commit

Permalink
apply suggestion by @devmotion
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Feb 26, 2024
1 parent fc05a09 commit 0abd194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const PROGRESS = Ref(true)
Enable progress logging globally if `progress` is `true`, and disable it otherwise.
"""
function setprogress!(progress::Bool; verbose::Bool=true)
if verbose
function setprogress!(progress::Bool; silent::Bool=false)
if !silent
@info "progress logging is $(progress ? "enabled" : "disabled") globally"
end
PROGRESS[] = progress
Expand Down

0 comments on commit 0abd194

Please sign in to comment.