[wip] logging separated s.t. only one is enabled (#458)

* updated viewer/writer configs

* allow viewer + tb/wandb but with errors; moved localwriter to its own thing

* nits and all

* update test
This commit is contained in:
evonneng authored and GitHub committed 2022-09-17 17:50:11 -07:00
1 parent a79ef3fb11
commit 4e7ef375a2
11 files changed
+200 -166

No files matched your search

+3 -3
View File
@@ -49,12 +49,12 @@ def check_profiler_enabled(func: Callable) -> Callable:
return wrapper
def check_visualizer_enabled(func: Callable) -> Callable:
"""Decorator: check if visualizer is enabled"""
def check_viewer_enabled(func: Callable) -> Callable:
"""Decorator: check if viewer is enabled"""
def wrapper(self, *args, **kwargs):
ret = None
if self.vis:
if self.config.viewer.enable:
ret = func(self, *args, **kwargs)
return ret