Skip to content

Commit 45a4b96

Browse files
author
Alexey Stukalov
committed
make it clear which verbosity is being set
1 parent df73310 commit 45a4b96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/FactorRotations.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If set to `false` (the default), package functions will not log `@info` statemen
5656
If set to `true`, package functions will provide `@info` statements.
5757
"""
5858
function setverbosity!(verbose::Bool)
59-
@info "Logging is $(verbose ? "enabled" : "disabled") globally."
59+
@info "$(@__MODULE__) logging is $(verbose ? "enabled" : "disabled") globally."
6060
VERBOSITY[] = verbose
6161
return nothing
6262
end

test/utils.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
@testset "setverbosity!" begin
2121
@test FactorRotations.VERBOSITY[] == false
22-
@test_logs (:info, "Logging is disabled globally.") setverbosity!(false)
23-
@test_logs (:info, "Logging is enabled globally.") setverbosity!(true)
22+
@test_logs (:info, "FactorRotations logging is disabled globally.") setverbosity!(false)
23+
@test_logs (:info, "FactorRotations logging is enabled globally.") setverbosity!(true)
2424
@test FactorRotations.VERBOSITY[] == true
2525

2626
setverbosity!(false) # disable logging for following tests

0 commit comments

Comments
 (0)