소스 검색

add more logging

Noah Vogt 1 년 전
부모
커밋
2a2dcdb3ff
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      os_agnostic/cd.py

+ 3 - 0
os_agnostic/cd.py

@@ -90,6 +90,9 @@ def get_scsi_drives() -> list[str]:
             raise CustomException("Command 'cdrecord -scanbus' failed.")
         for line in output.split(b"\n"):
             print(line)
+            print(match(rb"\s*[0-9](,[0-9])+\s*[0-9]+", line))
+            print(not bytes_line_ends_with(line, "*"))
+            print(not bytes_line_ends_with(line, "HOST ADAPTOR"))
             # pylint: disable=possibly-used-before-assignment
             if (
                 match(rb"\s*[0-9](,[0-9])+\s*[0-9]+", line)