I’m having trouble suppressing Info messages from an imported module—in this case, the MatrixDepot module, which spits out a few lines when imported.
At the REPL, the following does what I want:
module foo using Logging old_logger = global_logger(NullLogger()) using MatrixDepot global_logger(old_logger) bar(n) = matrixdepot("poisson",n) end # module foo
I can then call
foo.bar(3) and there are no messages from MatrixDepot.
However, if I turn the same code into the source for a package, then on
using Foo, the messages from MatrixDepot come back to the console. How do I stop them, short of forcing the REPL user to change their log level first?