Skip to content

Commit

Permalink
Remove warning prints to screen
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed Feb 27, 2021
1 parent cd52917 commit b8a63fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion s_tui/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from collections import OrderedDict

__version__ = "1.1.0"
__version__ = "1.1.1"

_DEFAULT = object()
PY3 = sys.version_info[0] == 3
Expand Down
11 changes: 10 additions & 1 deletion s_tui/s_tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

import psutil
import urwid
import urwid.curses_display

try:
import configparser
Expand Down Expand Up @@ -748,7 +749,9 @@ def set_mode(self, mode):
def main(self):
""" Starts the main loop and graph animation """
loop = MainLoop(self.view, DEFAULT_PALETTE,
handle_mouse=self.handle_mouse)
handle_mouse=self.handle_mouse,
# screen=urwid.curses_display.Screen()
)
self.view.show_graphs()
self.animate_graph(loop)
try:
Expand Down Expand Up @@ -887,6 +890,12 @@ def main():
file_handler.setFormatter(log_formatter)
root_logger.addHandler(file_handler)
root_logger.setLevel(level)
else:
level = logging.ERROR
log_formatter = logging.Formatter(
"%(asctime)s [%(funcName)s()] [%(levelname)-5.5s] %(message)s")
root_logger = logging.getLogger()
root_logger.setLevel(level)

if args.terminal or args.json:
logging.info("Printing single line to terminal")
Expand Down

0 comments on commit b8a63fb

Please sign in to comment.