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:
Richard Liaw
2019-01-30 21:01:12 -08:00
committed by Philipp Moritz
parent 5f145041ef
commit d128636bab
13 changed files with 76 additions and 63 deletions
+4 -5
View File
@@ -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: