make add/remove more verbose

This commit is contained in:
chrys 2018-06-04 08:36:14 +02:00
parent e586c6aa79
commit 4ea9740849
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,9 @@ def addScreenToIgnoreList(ignoreFileName = '/tmp/fenrirSuspend', screen = '1', u
if not screen in ignoreScreens:
ignoreScreens.extend(screen)
print('Add screen {0} to ignore file:{1}'.format(screen, ignoreFileName))
else:
print('Screen {0} already exists in ignore file:{1}'.format(screen, ignoreFileName))
ignoreScreensStr = ','.join(ignoreScreens)
with open(ignoreFileName, 'w') as fp:

View File

@ -19,6 +19,9 @@ def removeScreenFromIgnoreList(ignoreFileName = '/tmp/fenrirSuspend', screen = '
if screen in ignoreScreens:
ignoreScreens.remove(screen)
print('Remove screen {0} to ignore file:{1}'.format(screen, ignoreFileName))
else:
print('Screen {0} does not exists in ignore file:{1}'.format(screen, ignoreFileName))
ignoreScreensStr = ','.join(ignoreScreens)
with open(ignoreFileName, 'w') as fp: