Skip to content

Commit

Permalink
replace deprecated logger function
Browse files Browse the repository at this point in the history
  • Loading branch information
mruoss committed Jun 21, 2023
1 parent d52b7e2 commit c9e3560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/k8s_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
strategy:
matrix:
k8s_version: [v1.22.15, v1.23.13, v1.24.7, v1.25.3, v1.26.0]
otp: [26.x]
elixir: [1.14.x]
steps:
- uses: engineerd/setup-kind@v0.5.0
id: kind
Expand Down
4 changes: 2 additions & 2 deletions lib/bonny/operator/leader_elector.ex
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ defmodule Bonny.Operator.LeaderElector do
{:DOWN, ref, :process, pid, _reason},
%__MODULE__{operator_pid: {pid, ref}} = state
) do
Logger.warn(
Logger.warning(
"{Operator=#{inspect(state.operator)}} - Uh-oh! Our operator just went down. Guess that means I have to give up leadership. Boohoo!",
library: :bonny
)
Expand All @@ -145,7 +145,7 @@ defmodule Bonny.Operator.LeaderElector do
end

def handle_info({:DOWN, _ref, :process, _pid, _reason}, state) do
Logger.warn(
Logger.warning(
"{Operator=#{inspect(state.operator)}} - Very strange. A process I'm monitoring went down. But I'm not the leader. Looks like a bug in Bonny. Anyway, releaseing the lock if I have it.",
library: :bonny
)
Expand Down

0 comments on commit c9e3560

Please sign in to comment.