mirror of
https://github.com/wassname/ray.git
synced 2026-07-14 11:17:54 +08:00
Ray Logging Configuration (#3691)
* fix logging for autoscaler * module logging * try this for logging * yapf * fix * Initial logging setup * momery * ok * remove basicconfig * catch * remove package logging * print * fix * try_fix * fix 1 * revert rllib * logging level * flake8 * fix * fix * Remove vestigal TODO
This commit is contained in:
committed by
Philipp Moritz
parent
5f145041ef
commit
d128636bab
@@ -55,11 +55,10 @@ class MemoryMonitor(object):
|
||||
self.last_checked = time.time()
|
||||
self.error_threshold = error_threshold
|
||||
if not psutil:
|
||||
logger.warning(
|
||||
"WARNING: Not monitoring node memory since `psutil` is not "
|
||||
"installed. Install this with `pip install psutil` "
|
||||
"(or ray[debug]) to enable debugging of memory-related "
|
||||
"crashes.")
|
||||
print("WARNING: Not monitoring node memory since `psutil` is not "
|
||||
"installed. Install this with `pip install psutil` "
|
||||
"(or ray[debug]) to enable debugging of memory-related "
|
||||
"crashes.")
|
||||
|
||||
def raise_if_low_memory(self):
|
||||
if not psutil:
|
||||
|
||||
Reference in New Issue
Block a user