1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-24 15:59:42 +02:00
This commit is contained in:
dbarzin 2023-02-15 14:58:55 +01:00
parent a9152b5746
commit a98623c373
2 changed files with 14 additions and 4 deletions

View file

@ -178,7 +178,7 @@ class PandoraBox:
self.status_win.addstr(3, 1, "Used : ",curses.color_pair(2))
else:
self.status_win.addstr(3, 1, "Used : %s " % label,curses.color_pair(2))
logging.info("used=%s" % label)
logging.info(f'used="{label}')
self.status_win.refresh()
def print_fstype(self, label):
@ -279,12 +279,12 @@ class PandoraBox:
)
logs = []
def log(self, str):
def log(self, msg):
"""log something"""
logging.info(str)
logging.info(msg)
if self.has_curses:
# display log on screen
self.logs.append(str)
self.logs.append(msg)
if len(self.logs)>(curses.LINES-22):
self.logs.pop(0)
self.log_win.clear()