Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

cleanup a handful of scaleset logs #880

Merged
merged 1 commit into from
May 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/api-service/__app__/agent_registration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ def get(req: func.HttpRequest) -> func.HttpResponse:

def post(req: func.HttpRequest) -> func.HttpResponse:
registration_request = parse_uri(AgentRegistrationPost, req)
logging.info("Registration request: %s", (registration_request))
if isinstance(registration_request, Error):
return not_ok(registration_request, context="agent registration")
logging.info(
"registration request: %s", registration_request.json(exclude_none=True)
)

pool = Pool.get_by_name(registration_request.pool_name)
if isinstance(pool, Error):
Expand Down
2 changes: 1 addition & 1 deletion src/api-service/__app__/onefuzzlib/workers/scalesets.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def delete_nodes(self, nodes: List[Node]) -> None:
machine_ids.append(node.machine_id)

logging.info(
SCALESET_LOG_PREFIX + "deleting scaleset_id:%s machine_id:%s",
SCALESET_LOG_PREFIX + "deleting nodes scaleset_id:%s machine_id:%s",
self.scaleset_id,
machine_ids,
)
Expand Down