debugging

This commit is contained in:
Anton Hvornum 2019-11-29 15:37:05 +01:00
parent c2badea10b
commit 253e52da22
1 changed files with 2 additions and 1 deletions

View File

@ -306,6 +306,7 @@ class sys_command():#Thread):
break
if 'debug' in self.kwargs and self.kwargs['debug'] and len(output):
print(self.cmd[0], 'gave:', output.decode('UTF-8'), origin='spawn', level=4)
log(self.cmd[0],'gave:', output.decode('UTF-8'), origin='spawn', level=4)
lower = output.lower()
@ -1230,7 +1231,7 @@ if __name__ == '__main__':
close_disks()
print(f'[N] Setting up {args["drive"]}.')
if not format_disk('drive', start='start', end='size', debug=True):
pritn(f'[E] Coult not format drive {args["drive"]}')
print(f'[E] Coult not format drive {args["drive"]}')
exit(1)
refresh_partition_list('drive')