How to suppress "PROGRESS REPORT" statements on stdout

Hello

I’m new to Elixir, I tried searching for this but couldn’t find anything that works, so posting here.

How can I suppress the “PROGRESS REPORT” statements that gets printed to stdout every time I run a exs file. Here’s a sample of that:

=PROGRESS REPORT==== 28-Aug-2017::22:39:40 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.59.0>},
                       {id,alarm_handler},
                       {mfargs,{alarm_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 28-Aug-2017::22:39:40 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.58.0>},
                       {id,sasl_safe_sup},
                       {mfargs,
                           {supervisor,start_link,
                               [{local,sasl_safe_sup},sasl,safe]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 28-Aug-2017::22:39:40 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.60.0>},
                       {id,release_handler},
                       {mfargs,{release_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 28-Aug-2017::22:39:40 ===
         application: sasl
          started_at: nonode@nohost

I’m running macOS, Erlang/OTP 20

2 Likes

Maybe this will help: https://github.com/elixir-lang/elixir/issues/5197

One workaround: elixir --erl "-sasl sasl_error_logger false"

In that topic there is also discussion where the messages are coming from. It seems your Erlang installation is starting some SASL thing that prints them.

3 Likes

Thanks, this helped. It turned out that the default options used by Erlang Solutions pre-compiled binaries have this option enabled. I uninstalled those and installed Erlang using brew and those print statements are gone.

2 Likes

For future readers, the command line argument above can also be set in config:

config :sasl, sasl_error_logger: false

Thanks to @DavidAntaramian for the tip.

3 Likes