Skip to content

Commit

Permalink
Don't spam logs for unexpected return value if truncation is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
LostKobrakai authored and jjcarstens committed Feb 2, 2023
1 parent 587e39c commit 3e21b08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ defmodule NervesHubWebCore.Workers.TruncateAuditLogs do
@impl true
def run(_) do
config = Application.get_env(:nerves_hub_web_core, __MODULE__)
if config[:enabled], do: NervesHubWebCore.AuditLogs.truncate(config)
if config[:enabled], do: NervesHubWebCore.AuditLogs.truncate(config), else: :ok
end
end

0 comments on commit 3e21b08

Please sign in to comment.