You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable logging for all components, remove print stmts (#80)
This change enables a logger for each module of yarn-api-client.
By default, nothing will be logged unless the calling application has
configured logging. Once configured, entries will be logged relative
to the configured log level. The calling application is also responsible
for specifying the appropriate log formats, etc.
An accessor method, get_logger(logger_name), has been created in case we
need to add configuration for the loggers. In those cases, we'd probably
configure the logger "yarn_api_client", so that each of the submodule
loggers would inherit from that logger. Likewise, applications can
configure "yarn_api_client" themselves and those changes will be picked
up by the individual loggers.
The previous INFO log statement has been changed to DEBUG and I've
added timing results for the request. In addition, the previous print
statements have been replaced with calls to apiLogger().warning().
Fixes: #73
Co-authored-by: Dmitry Romanenko <Dmitry@Romanenko.in>
0 commit comments