   # This has to be at runtime because you cant access your own apps
   # priv dir during Mix.Config.
   if Mix.env == :prod do
-    defp maybe_debug_logger do
-      []
-    end
 
     defp setup_nerves_fw do
       Logger.info ">> Setting up firmware signing!"

      if File.exists?(file), do: :ok, else: {:error, :no_pub_file}
    end
  else
    defp maybe_debug_logger do
      [
        worker(Farmbot.DebugLog, [], restart: :permanent),
      ]
    end

    defp setup_nerves_fw do
      Logger.info ">> Disabling firmware signing!"
      Application.put_env(:nerves_firmware, :pub_key_path, nil)
      :ok
    end
  end
end


  def init(_args) do
    children = [
      worker(Farmbot.DebugLog, [], restart: :permanent),
      supervisor(Registry, [:duplicate,  Farmbot.Registry]),
      # System specifics.
      supervisor(FBSYS, [], restart: :permanent),
