Skip to content

Commit

Permalink
Update logging levels (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored Mar 5, 2024
1 parent a62d4fa commit a5cf735
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/py/flwr/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import concurrent.futures
import timeit
from logging import DEBUG, INFO, WARN
from logging import INFO, WARN
from typing import Dict, List, Optional, Tuple, Union

from flwr.common import (
Expand Down Expand Up @@ -173,7 +173,7 @@ def evaluate_round(
log(INFO, "evaluate_round %s: no clients selected, cancel", server_round)
return None
log(
DEBUG,
INFO,
"evaluate_round %s: strategy sampled %s clients (out of %s)",
server_round,
len(client_instructions),
Expand All @@ -188,7 +188,7 @@ def evaluate_round(
group_id=server_round,
)
log(
DEBUG,
INFO,
"evaluate_round %s received %s results and %s failures",
server_round,
len(results),
Expand Down Expand Up @@ -223,7 +223,7 @@ def fit_round(
log(INFO, "fit_round %s: no clients selected, cancel", server_round)
return None
log(
DEBUG,
INFO,
"fit_round %s: strategy sampled %s clients (out of %s)",
server_round,
len(client_instructions),
Expand All @@ -238,7 +238,7 @@ def fit_round(
group_id=server_round,
)
log(
DEBUG,
INFO,
"fit_round %s received %s results and %s failures",
server_round,
len(results),
Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/server/superlink/driver/driver_servicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def GetNodes(
self, request: GetNodesRequest, context: grpc.ServicerContext
) -> GetNodesResponse:
"""Get available nodes."""
log(INFO, "DriverServicer.GetNodes")
log(DEBUG, "DriverServicer.GetNodes")
state: State = self.state_factory.state()
all_ids: Set[int] = state.get_nodes(request.run_id)
nodes: List[Node] = [
Expand Down

0 comments on commit a5cf735

Please sign in to comment.