NVFlare icon indicating copy to clipboard operation
NVFlare copied to clipboard

Control the frequency of logging

Open YuanTingHsieh opened this issue 4 years ago • 4 comments

Quote @ZiyueXu77 : "Shall we provide some control on the frequent logging printouts?" For example:


FederatedServer - INFO - Fetch task requested from client: client_covid (067cf2b5-20dc-449a-9067-9ea9ec3d6081)
ServerRunner - INFO - [run=1, wf=scatter_and_gather, peer=client_covid, peer_run=1]: got task request from client
ServerRunner - INFO - [run=1, wf=scatter_and_gather, peer=client_covid, peer_run=1]: no task currently for client - asked client to try
again later

YuanTingHsieh avatar Feb 25 '22 20:02 YuanTingHsieh

A related topic:

If we enable the TB streaming on the client side, we will see a lot of the following logging information:

FederatedClient - INFO - Starting to send aux messagee.
Communicator - INFO - Send AuxMessage to XXX server

I think we want to change these AuxMessage related logging level to DEBUG, what do you think?

YuanTingHsieh avatar Feb 25 '22 20:02 YuanTingHsieh

Yes, agreed. We probably should make many of these log messages into DEBUG level.

Yuan-Ting, please take a look at this kind of messages. In addition to the aux and fed client communicator, also look at ClientRuner, ServerRunner and Controller impl.

yanchengnv avatar Feb 25 '22 20:02 yanchengnv

Agreed, DEBUG level will be a good fit

ZiyueXu77 avatar Feb 25 '22 20:02 ZiyueXu77

Sure, let me take a look at these and prepare a PR so we can review it.

YuanTingHsieh avatar Feb 25 '22 22:02 YuanTingHsieh