Skip to content

Commit

Permalink
Removed Etrigan GUI support
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmicro committed Feb 21, 2023
1 parent 77e545d commit f1fa5b7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1,471 deletions.
7 changes: 1 addition & 6 deletions py-kms/pykms_Format.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ def execute(self):
ShellMessage.indx += 1

def print_logging_setup(self, logger, async_flag, formatter = logging.Formatter('%(name)s %(message)s')):
from pykms_GuiBase import gui_redirector
stream = gui_redirector(StringIO())
handler = logging.StreamHandler(stream)
handler = logging.StreamHandler(StringIO())
handler.name = 'LogStream'
handler.setLevel(logging.INFO)
handler.setFormatter(formatter)
Expand All @@ -293,9 +291,6 @@ def print_logging_setup(self, logger, async_flag, formatter = logging.Formatter(

def print_logging(self, toprint):
if (self.nshell and ((0 in self.nshell) or (2 in self.nshell and not ShellMessage.viewclt))) or ShellMessage.indx == 0:
from pykms_GuiBase import gui_redirector_setup, gui_redirector_clear
gui_redirector_setup()
gui_redirector_clear()
self.print_logging_setup(ShellMessage.loggersrv_pty, ShellMessage.asyncmsgsrv)
self.print_logging_setup(ShellMessage.loggerclt_pty, ShellMessage.asyncmsgclt)

Expand Down

0 comments on commit f1fa5b7

Please sign in to comment.