Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pelemay Logger terminated in case of Elixir 1.13 #165

Open
zacky1972 opened this issue Dec 3, 2021 · 0 comments
Open

Pelemay Logger terminated in case of Elixir 1.13 #165

zacky1972 opened this issue Dec 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@zacky1972
Copy link
Collaborator

Describe the bug

The following error occurs in case of Elixir 1.13:

03:51:38.464 [error] :gen_event handler Pelemay.Logger installed in Logger terminating
** (FunctionClauseError) no function clause matching in Pelemay.Logger.handle_info/2
    (pelemay 0.0.15) lib/pelemay/logger.ex:49: Pelemay.Logger.handle_info({Logger.Config, :update_counter}, %{format: "$date $time [$level] $message", path: "/Users/zacky/github/pelemay_fp_benchmark/_build/dev/lib/pelemay/priv/info.log"})
    (stdlib 3.16.1) gen_event.erl:627: :gen_event.server_update/4
    (stdlib 3.16.1) gen_event.erl:609: :gen_event.server_notify/4
    (stdlib 3.16.1) gen_event.erl:398: :gen_event.handle_msg/6
    (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: {Logger.Config, :update_counter}
State: %{format: "$date $time [$level] $message", path: "/Users/zacky/github/pelemay_fp_benchmark/_build/dev/lib/pelemay/priv/info.log"}

03:51:38.504 [error] GenServer #PID<0.741.0> terminating
** (stop) {:EXIT, {:function_clause, [{Pelemay.Logger, :handle_info, [{Logger.Config, :update_counter}, %{format: "$date $time [$level] $message", path: "/Users/zacky/github/pelemay_fp_benchmark/_build/dev/lib/pelemay/priv/info.log"}], [file: 'lib/pelemay/logger.ex', line: 49]}, {:gen_event, :server_update, 4, [file: 'gen_event.erl', line: 627]}, {:gen_event, :server_notify, 4, [file: 'gen_event.erl', line: 609]}, {:gen_event, :handle_msg, 6, [file: 'gen_event.erl', line: 398]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}]}}
Last message: {:gen_event_EXIT, Pelemay.Logger, {:EXIT, {:function_clause, [{Pelemay.Logger, :handle_info, [{Logger.Config, :update_counter}, %{format: "$date $time [$level] $message", path: "/Users/zacky/github/pelemay_fp_benchmark/_build/dev/lib/pelemay/priv/info.log"}], [file: 'lib/pelemay/logger.ex', line: 49]}, {:gen_event, :server_update, 4, [file: 'gen_event.erl', line: 627]}, {:gen_event, :server_notify, 4, [file: 'gen_event.erl', line: 609]}, {:gen_event, :handle_msg, 6, [file: 'gen_event.erl', line: 398]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}]}}}
State: Pelemay.Logger

To Reproduce
Steps to reproduce the behavior:

  1. Use Pelemay in the source code of pelemay_fp_benchmark
  2. Run in the command 'mix bench'
  3. See the above-mentioned error

Expected behavior
No error occurs.

Screenshots
None.

Desktop (please complete the following information):

  • Pelemay Version: 0.0.15
  • Elixir & Erlang/OTP versions (elixir --version):
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]

Elixir 1.13.0 (compiled with Erlang/OTP 24)
  • OS (OS name & version, and uname -a):
Darwin *** 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64
  • Clang versions (clang -v):
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Additional context
None.

@zacky1972 zacky1972 added the bug Something isn't working label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant