From 87ef68e26a59c0872d351efbf6cb8ef40a9ff746 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 9 Dec 2020 13:47:46 -0500 Subject: [PATCH] Add 'memory' console.logging If console.logging is not desired, but reconstituting the screen is, provide 'memory' as a method to do that. On slow disks this can significantly improve performance. --- confluent_server/confluent/config/attributes.py | 2 +- confluent_server/confluent/consoleserver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/config/attributes.py b/confluent_server/confluent/config/attributes.py index 7c5506aa..4ed63290 100644 --- a/confluent_server/confluent/config/attributes.py +++ b/confluent_server/confluent/config/attributes.py @@ -336,7 +336,7 @@ node = { 'description': ('Indicate logging level to apply to console. Valid ' 'values are currently "full", "interactive", and ' '"none". Defaults to "full".'), - 'validvalues': ('full', 'interactive', 'none'), + 'validvalues': ('full', 'memory', 'interactive', 'none'), }, 'console.method': { 'description': ('Indicate the method used to access the console of ' diff --git a/confluent_server/confluent/consoleserver.py b/confluent_server/confluent/consoleserver.py index 29eed0f5..9f996a58 100644 --- a/confluent_server/confluent/consoleserver.py +++ b/confluent_server/confluent/consoleserver.py @@ -234,7 +234,7 @@ class ConsoleHandler(object): self._isondemand = False else: if (attrvalue[self.node]['console.logging']['value'] not in ( - 'full', '', 'buffer')): + 'full', '', 'memory')): self._isondemand = True if (attrvalue[self.node]['console.logging']['value']) in ('none', 'memory'): self._dologging = False