I work on a very large umbrella project. I did this config in my web app:
config :logger,
level: String.to_atom(System.get_env("LOGGER_LEVEL") || "info"),
handle_otp_reports: true,
handle_sasl_reports: true
config :my_web, MyWeb.Gettext, one_module_per_locale: true, allowed_locales: ["en"]
But finally, I found that when I was testing a file, it took almost 5 seconds before my gettext
app started:
These are the top logs when I run mix test filename.exs
at 11:10:30
:
11:10:35.496 [info] Child Gettext.ExtractorAgent of Supervisor #PID<0.4876.0> (Supervisor.Default) started
Pid: #PID<0.4877.0>
Start Call: Gettext.ExtractorAgent.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker
then, I removed the gettext
deps, but It doesn’t solve the problem.
These are the top logs when I run mix test filename.exs
at 12:37:00
after I remove the gettext
deps:
2021-10-31 12:37:04.800 [info] module=application_controller function=info_started/2 line=2089 Application logger started at :nonode@nohost
2021-10-31 12:37:04.844 [info] module=supervisor function=report_progress/2 line=1546 Child :ttb_autostart of Supervisor :runtime_tools_sup started
Pid: #PID<0.4893.0>