Add debug function to farm_event manager

This commit is contained in:
Connor Rigby 2017-12-28 07:55:20 -08:00 committed by Connor Rigby
parent de120e558e
commit 56c7210af5

View file

@ -279,4 +279,9 @@ defmodule Farmbot.FarmEvent.Manager do
:ok
end
end
@doc "Enable or disbale debug logs for farmevents."
def debug_logs(bool \\ true) when is_boolean(bool) do
Application.put_env(:farmbot, :farm_event_debug_log, bool)
end
end