=CRASH REPORT==== 6-Oct-2021::10:08:01.874782 ===
crasher:
initial call: application_master:init/4
pid: <0.13246.0>
registered_name: []
exception exit: {bad_return,
{{'Elixir.Logger.App',start,[normal,[]]},
{'EXIT',
{{badmatch,{error,{invalid_level,infod}}},
[{'Elixir.Logger.App',add_elixir_handler,2,
[{file,"lib/logger/app.ex"},{line,108}]},
{'Elixir.Logger.App',start,2,
[{file,"lib/logger/app.ex"},{line,26}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},
{line,293}]}]}}}}
in function application_master:init/4 (application_master.erl, line 142)
ancestors: [<0.13245.0>]
message_queue_len: 1
messages: [{'EXIT',<0.13247.0>,normal}]
links: [<0.13245.0>,<0.44.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 610
stack_size: 29
reductions: 190
neighbours:
=INFO REPORT==== 6-Oct-2021::10:08:01.881275 ===
application: logger
exited: {bad_return,
{{'Elixir.Logger.App',start,[normal,[]]},
{'EXIT',
{{badmatch,{error,{invalid_level,infod}}},
[{'Elixir.Logger.App',add_elixir_handler,2,
[{file,"lib/logger/app.ex"},{line,108}]},
{'Elixir.Logger.App',start,2,
[{file,"lib/logger/app.ex"},{line,26}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,293}]}]}}}}
type: permanent
** (exit) exited in: GenServer.call(Mix.ProjectStack, {:update_stack, #Function<17.65065873/1 in Mix.ProjectStack.printable_app_name/0>}, :infinity)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
(elixir 1.12.0) lib/gen_server.ex:1014: GenServer.call/3
(mix 1.12.0) lib/mix/shell/io.ex:15: Mix.Shell.IO.print_app/0
(mix 1.12.0) lib/mix/shell/io.ex:34: Mix.Shell.IO.error/1
(mix 1.12.0) lib/mix/tasks/app.start.ex:79: anonymous fn/3 in Mix.Tasks.App.Start.start/2
(elixir 1.12.0) lib/enum.ex:2356: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.12.0) lib/mix/tasks/app.start.ex:69: Mix.Tasks.App.Start.start/2
(mix 1.12.0) lib/mix/task.ex:394: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.12.0) lib/mix/tasks/run.ex:129: Mix.Tasks.Run.run/5
*** Shell process terminated! (^G to start new job) ***
{"Kernel pid terminated",application_controller,"{application_start_failure,logger,{bad_return,{{'Elixir.Logger.App',start,[normal,[]]},{'EXIT',{{badmatch,{error,{invalid_level,infod}}},[{'Elixir.Logger.App',add_elixir_handler,2,[{file,\"lib/logger/app.ex\"},{line,108}]},{'Elixir.Logger.App',start,2,[{file,\"lib/logger/app.ex\"},{line,26}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,293}]}]}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,logger,{bad_return,{{'Elixir.Logger.App',start,[normal,[]]},{'EXIT',{{badmatch,{error,{invalid_level,infod}}},[{'Elixir.Logge
Crash dump is being written to: erl_crash.dump...done
application: logger
exited: {bad_return,
{{'Elixir.Logger.App',start,[normal,[]]},
{'EXIT',
{{badmatch,{error,{invalid_level,infod}}},
What is your logger configuration on prod? What logging level are you using?
2 Likes
config :logger, :console,
config :logger, level: :info
Please check if you don’t have a typo anywhere. Look for “infod”.
2 Likes
Found it
config :logger, level: :infod
was the typo
Changed it to
config :logger, level: :info
Thanks