【发布时间】:2022-06-28 22:22:10
【问题描述】:
有没有办法抑制 NEPTUNE 库输出的 DEBUG 消息? https://github.com/neptune-ai/neptune-client
这就是我目前正在做的事情:
tracker = neptune.init(project=f'WORKSPACE/PROJECT_NAME',
capture_hardware_metrics=False,
source_files=[],
capture_stdout=False,
capture_stderr=False)
这些是我收到的 DEBUG 消息:
2022-05-03 11:31:58 DEBUG https://app.neptune.ai:443 "POST /api/leaderboard/v1/attributes/ping?experimentId=aaa HTTP/1.1" 200 0
2022-05-03 11:32:08 DEBUG ping({'experimentId': 'aaa', '_request_options': {'timeout': 10, 'connect_timeout': 10}})
【问题讨论】:
-
您可以通过将空列表传递给
neptune.init(): run = neptune.init(..., source_files=[])的 source_files 参数来关闭源代码的日志记录 -
@Thornily,我已经这样做了,但仍然收到大量 DEBUG 消息
-
我很确定没有其他办法了
标签: python