Skip to content

Commit

Permalink
Change System.get_pid/0 to System.pid/0 (#81)
Browse files Browse the repository at this point in the history
`System.get_pid/0` is deprecated in flavor of `System.pid/0`. Since we
use this function, we need to bump minimum elixir requirement to be
at least version 1.9.
  • Loading branch information
thanabodee-c authored Feb 24, 2022
1 parent 88b4adf commit 2b2c1b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/logger_json/plug/metadata_formatters/elk.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if Code.ensure_loaded?(Plug) do
{:ok, hostname} = :inet.gethostname()

vm_pid =
case Integer.parse(System.get_pid()) do
case Integer.parse(System.pid()) do
{pid, _units} -> pid
_ -> nil
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if Code.ensure_loaded?(Plug) do
{:ok, hostname} = :inet.gethostname()

vm_pid =
case Integer.parse(System.get_pid()) do
case Integer.parse(System.pid()) do
{pid, _units} -> pid
_ -> nil
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule LoggerJSON.Mixfile do
[
app: :logger_json,
version: @version,
elixir: "~> 1.8",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
Expand Down

0 comments on commit 2b2c1b3

Please sign in to comment.