Closed danmar3 closed 8 months ago
Hmm, we need to find a way to unify all the logging levels.
There's XGB logging, Python logging, spark logging, among some others.
Let me have a PR to fix this issue.
Hi @danmar3, previously, it will print the Do the inference on the CPUs
for every partition, which is really annoying. So I made https://github.com/dmlc/xgboost/pull/10077 to rework the log by putting the log showing on partition 0, which means there's only 1 line log printed for the inference. I think this is ok for debugging, especially for the GPU scenario, sometimes it will fall back to CPU due to the environment even though we have manually set it to use GPU.
Hi, currently using XGBoost-PySpark in notebooks generates several log messages. I have not been able to turn them off. For example, when calling .transform, the notebook gets spammed with several messages like:
Currently, every time get_logger is called (here), the logger information is set to INFO here. This does not allow the user to set the logging level, as it is always re-set to 'INFO'.
I think this can be solved by removing the setLevel line here.
Thank you