diff --git a/Project.toml b/Project.toml index 3e2c6383..97c90709 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "80f14c24-f653-4e6a-9b94-39d6b0f70001" keywords = ["markov chain monte carlo", "probablistic programming"] license = "MIT" desc = "A lightweight interface for common MCMC methods." -version = "5.1.0" +version = "5.2.0" [deps] BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66" diff --git a/src/sample.jl b/src/sample.jl index 58217f39..175ec8df 100644 --- a/src/sample.jl +++ b/src/sample.jl @@ -6,8 +6,10 @@ const PROGRESS = Ref(true) Enable progress logging globally if `progress` is `true`, and disable it otherwise. """ -function setprogress!(progress::Bool) - @info "progress logging is $(progress ? "enabled" : "disabled") globally" +function setprogress!(progress::Bool; silent::Bool=false) + if !silent + @info "progress logging is $(progress ? "enabled" : "disabled") globally" + end PROGRESS[] = progress return progress end