Less verbose after first run()

This commit is contained in:
bongbui321 2024-04-25 02:37:58 -04:00
parent 2ed24c090f
commit 9d0d43bbdf
2 changed files with 6 additions and 0 deletions

3
edl
View file

@ -343,6 +343,9 @@ class main(metaclass=LogBase):
print("Error on sahara handshake, resetting.")
self.sahara.cmd_reset()
sys.exit(1)
else:
if self.__logger.level != logging.DEBUG:
self.__logger.setLevel(logging.ERROR)
if mode == "error":
print("Connection detected, quiting.")
sys.exit(1)

3
test_script.sh Executable file
View file

@ -0,0 +1,3 @@
./edl w xbl_a /home/bongb/agnos/xbl.img
./edl w xbl_a /home/bongb/agnos/xbl.img
./edl reset