2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-29 12:27:40 +00:00

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.
This commit is contained in:
Jarrod Johnson 2020-12-09 13:47:46 -05:00
parent 55b97793fd
commit 87ef68e26a
2 changed files with 2 additions and 2 deletions

View File

@ -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 '

View File

@ -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