ray icon indicating copy to clipboard operation
ray copied to clipboard

[RuntimeEnv] debug log level can not be set.

Open MissiontoMars opened this issue 2 years ago • 1 comments

Description

When troubleshooting some issues about runtime-env, debug log needed. But it seems that the debug level can not be set.

I've tried the following two ways:

  1. set RAY_BACKEND_LOG_LEVEL=debug env
  2. using ray --logging-level=debug start --head command to start ray cluster

What is the correct way to enable debug logging in python code ?

Use case

No response

MissiontoMars avatar Aug 10 '22 10:08 MissiontoMars

@SongGuyang

MissiontoMars avatar Aug 10 '22 10:08 MissiontoMars

This is nothing related with runtime env. The python worker sets the log level to INFO by default, which cannot be confiugred, IIRC.

WangTaoTheTonic avatar Aug 11 '22 03:08 WangTaoTheTonic

Yep, It's a common issue which is related to all the python processes(workers、agent、scripts、client server and so on.)

SongGuyang avatar Aug 11 '22 04:08 SongGuyang

I'll try to fix it.

WangTaoTheTonic avatar Aug 19 '22 02:08 WangTaoTheTonic

cc: @rkooo567

scottsun94 avatar Oct 21 '22 05:10 scottsun94

@WangTaoTheTonic do you have a plan to make a PR? Otherwise I can fix it

rkooo567 avatar Oct 21 '22 05:10 rkooo567

@rkooo567 It will be good if you take this.

jovany-wang avatar Oct 21 '22 07:10 jovany-wang

Duplicated as https://github.com/ray-project/ray/issues/29758

rkooo567 avatar Nov 22 '22 01:11 rkooo567