Closed barttenbrinke closed 1 year ago
When I generate a new Umbrella app for OTP 26 / Elixir 1.15.4 it DOES log to the console, so I assume there is some config difference, but I've made sure the dependencies are identical and I looked at practically everything.. also the upgrade guide says it should "just work"?
Take a look at config files. If still fails, please provide a way to reproduce :)
Well two people have been working on this for two days now :) We've made sure:
Do yo have any idea where we can look in order to reproduce this :)?
Code reloader exceptions and asset pipeline DO log, so it is only Cowbow and Live requests that are not logged.
** (RuntimeError) could not compile application:
You must restart your server after changing the following files:
* /config/config.exs
Nothing from the top of my head :(
Switching to the legacy backend solved the problem. The project this is happening in has lots of deps and I wasn't able to pinpoint what causes the problem. One dep stands out and is directly related to logging: https://hex.pm/packages/lager, but I wasn't able to remove it from the project to verify this assumption.
This doc helped: https://hexdocs.pm/logger/1.15/Logger.html#module-backends-and-backwards-compatibility.
# mix.exs
def deps do
[
#...
{:logger_backends, "~> 1.0"}
]
end
# config.exs
config :logger, backends: [LoggerBackends.Console]
config :logger, LoggerBackends.Console, []
Closing this for now. If there is a mechanism to reproduce the failure, we will gladly reopen! :)
Elixir and Erlang/OTP versions
elixir --version Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns]
Elixir 1.15.4 (compiled with Erlang/OTP 24)
erl --version Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns]
Eshell V14.0.2 (press Ctrl+G to abort, type help(). for help)
Operating system
Ubuntu focal 20.04
Current behavior
Any requests done to any of the 3 endpoints does not result in any logging being written to console / stdout.
Dependencies:
Expected behavior