Skip to content

Commit

Permalink
ENH: Modify debug level (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
aresnow1 authored Jul 7, 2023
1 parent aea295f commit 19e81cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/xoscar/metrics/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ def init_metrics(backend="console", config: dict[str, Any] | None = None):
cls = getattr(_backends_cls[_metric_backend], m.type)
metric = cls(m.name, m.description, m.tag_keys)
m.set_metric(metric)
logger.info("Finished initialize the metrics of backend: %s.", _metric_backend)
logger.debug("Finished initialize the metrics of backend: %s.", _metric_backend)


def shutdown_metrics():
global _metric_backend
_metric_backend = "console"
global _init
_init = False
logger.info("Shutdown metrics of backend: %s.", _metric_backend)
logger.debug("Shutdown metrics of backend: %s.", _metric_backend)


class _MetricWrapper(AbstractMetric):
Expand Down

0 comments on commit 19e81cb

Please sign in to comment.