Remove debug logs for farm events
This commit is contained in:
parent
b97cd8ebdc
commit
f996b08590
|
@ -128,16 +128,16 @@ defmodule Farmbot.FarmEvent.Manager do
|
||||||
defp maybe_start_regimen(true = _started?, start_time, last_time, event, now) do
|
defp maybe_start_regimen(true = _started?, start_time, last_time, event, now) do
|
||||||
case is_too_old?(now, start_time) do
|
case is_too_old?(now, start_time) do
|
||||||
true ->
|
true ->
|
||||||
Logger.debug 3, "regimen #{event.name} (#{event.id}) is too old to start or already started."
|
# Logger.debug 3, "regimen #{event.name} (#{event.id}) is too old to start or already started."
|
||||||
{nil, last_time}
|
{nil, last_time}
|
||||||
false ->
|
false ->
|
||||||
Logger.debug 3, "regimen #{event.name} (#{event.id}) not to old; starting."
|
# Logger.debug 3, "regimen #{event.name} (#{event.id}) starting."
|
||||||
{event, now}
|
{event, now}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp maybe_start_regimen(false = _started?, start_time, last_time, event, _) do
|
defp maybe_start_regimen(false = _started?, _start_time, last_time, _event, _) do
|
||||||
Logger.debug 3, "regimen #{event.name} (#{event.id}) is not started yet. (#{inspect start_time}) (#{inspect Timex.now()})"
|
# Logger.debug 3, "regimen #{event.name} (#{event.id}) is not started yet. (#{inspect start_time}) (#{inspect Timex.now()})"
|
||||||
{nil, last_time}
|
{nil, last_time}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue