Skip to content

Commit

Permalink
Merge pull request #540 from bongbui321/less_verbose
Browse files Browse the repository at this point in the history
Less verbose after first run()
  • Loading branch information
bkerler authored Apr 26, 2024
2 parents f3e9776 + 0ba6b31 commit 8573eba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions edl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion edlclient/Library/firehose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ def cmd_patch_multiple(lun, start_sector, byte_offset, patch_data):
write_size = len(patch_data)
for i in range(0, write_size, size_each_patch):
pdata_subset = int(unpack(unpack_fmt, patch_data[offset:offset+size_each_patch])[0])
self.cmd_patch( lun, start_sector, byte_offset + offset, pdata_subset, size_each_patch, True)
self.cmd_patch( lun, start_sector, byte_offset + offset, pdata_subset, size_each_patch, False)
offset += size_each_patch
return True

Expand Down

0 comments on commit 8573eba

Please sign in to comment.