def do_cache(self, args=None): if hasattr(self, 'logs_cache'): print_logs(self.logs_cache) else: print("no logs cached at this moment")
def do_get(self, args=None): response = self.m2ee_client.get_profiler_logs() if response is not None: print_logs(response.get_feedback()) self.logs_cache = response.get_feedback()