Which application produces local data.<node_name>@localhost
and log.<node_name>@localhost
directories in project root? lager
? Where is this behavior configured? I was only expecting to see logs in the console, given config :logger, :console, format: "[$level] $message\n"
in dev.exs
.
I now realise these two (empty) directories, data.<node_name>@localhost
and log.<node_name>@localhost
, are created when the app can’t boot; f.e. when the Phoenix port is already in-use (** (EXIT) {:listen_error, MyAppWeb.Endpoint.HTTP, :eaddrinuse}
).
Do you know how to turn off this behaviour? Setting ERL_CRASH_DUMP=/dev/null
doesn’t prevent the creation of these dirs, neither does ERL_CRASH_DUMP_BYTES=0
.