Fix DeprecationWarning (#5608)

This commit is contained in:
Si-Yuan
2019-09-01 15:21:32 -07:00
committed by Philipp Moritz
parent 0cc0abf857
commit 0292f99e6c
6 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ class MemoryMonitor(object):
self.worker_name, round(heap_size / (1024**3), 4),
round(self.heap_limit / (1024**3), 4)))
elif heap_size > 0.8 * self.heap_limit:
logger.warn(
logger.warning(
"Heap memory usage for {} is {} / {} GiB limit".format(
self.worker_name, round(heap_size / (1024**3), 4),
round(self.heap_limit / (1024**3), 4)))