cleanup: remove debug logging from agent creation (again)

The user had manually added debug logging in commit 66fd6fa.
Now that the cloud poller checkbox issue is fixed, removing the debug output.
This commit is contained in:
Graham McIntire 2026-01-25 09:10:47 -06:00
parent 97cdb8e46c
commit 6516f509e9
No known key found for this signature in database

View file

@ -61,16 +61,10 @@ defmodule ToweropsWeb.AgentLive.Index do
@impl true
def handle_event("create_agent", params, socket) do
require Logger
Logger.info("Agent creation params: #{inspect(params)}")
{name, is_cloud_poller} = parse_agent_params(params)
Logger.info("Parsed - name: #{name}, is_cloud_poller: #{is_cloud_poller}")
with :ok <- validate_cloud_poller_permission(socket.assigns.current_scope.user, is_cloud_poller),
{:ok, agent_token, token} <- create_agent(socket.assigns.current_organization, name, is_cloud_poller) do
Logger.info("Created agent_token - id: #{agent_token.id}, is_cloud_poller: #{agent_token.is_cloud_poller}")
handle_agent_creation_success(socket, agent_token, token, is_cloud_poller)
else
{:error, :unauthorized} ->