# Suppression of Info messages on package load

**URL:** https://discourse.julialang.org/t/suppression-of-info-messages-on-package-load/78169
**Category:** General Usage
**Created:** [March 20, 2022, 5:03pm UTC](https://discourse.julialang.org/t/suppression-of-info-messages-on-package-load/78169 "2022-03-20T17:03:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tobydriscoll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobydriscoll/32/1843_2.png) [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)
#### Post date: [March 20, 2022, 5:03pm UTC](https://discourse.julialang.org/t/suppression-of-info-messages-on-package-load/78169/1 "2022-03-20T17:03:45Z")

</div>

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:

```julia
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?
