From 55d28e4f37ec2d953d6e1fa8b5a4fa91b1c98937 Mon Sep 17 00:00:00 2001 From: Heng Pan Date: Thu, 18 Apr 2024 14:02:40 +0100 Subject: [PATCH] Fix the logging for the REST client (#3289) --- src/py/flwr/client/rest_client/connection.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/py/flwr/client/rest_client/connection.py b/src/py/flwr/client/rest_client/connection.py index 0e6a7ef554e6..37e798e7cc3c 100644 --- a/src/py/flwr/client/rest_client/connection.py +++ b/src/py/flwr/client/rest_client/connection.py @@ -173,14 +173,14 @@ def ping() -> None: log( WARN, "[Node] POST /%s: missing header `Content-Type`", - PATH_PULL_TASK_INS, + PATH_PING, ) return if res.headers["content-type"] != "application/protobuf": log( WARN, "[Node] POST /%s: header `Content-Type` has wrong value", - PATH_PULL_TASK_INS, + PATH_PING, ) return @@ -223,14 +223,14 @@ def create_node() -> None: log( WARN, "[Node] POST /%s: missing header `Content-Type`", - PATH_PULL_TASK_INS, + PATH_CREATE_NODE, ) return if res.headers["content-type"] != "application/protobuf": log( WARN, "[Node] POST /%s: header `Content-Type` has wrong value", - PATH_PULL_TASK_INS, + PATH_CREATE_NODE, ) return @@ -277,14 +277,14 @@ def delete_node() -> None: log( WARN, "[Node] POST /%s: missing header `Content-Type`", - PATH_PULL_TASK_INS, + PATH_DELETE_NODE, ) return if res.headers["content-type"] != "application/protobuf": log( WARN, "[Node] POST /%s: header `Content-Type` has wrong value", - PATH_PULL_TASK_INS, + PATH_DELETE_NODE, ) # Cleanup