Skip to content

Commit 415ea42

Browse files
fix: return logging levels to original state
1 parent f7b4ab0 commit 415ea42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rawtools/dat.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __parse_object_filename(line, dat_format):
6969

7070
match = re.match(pattern, line, flags=re.IGNORECASE)
7171
if match is not None:
72-
logging.info(f"Match: {match}")
72+
logging.debug(f"Match: {match}")
7373
return match.group('filename')
7474

7575
def __parse_resolution(line, dat_format):
@@ -126,7 +126,7 @@ def __parse_slice_thickness(line, dat_format):
126126

127127
match = re.match(pattern, line, flags=re.IGNORECASE)
128128
if match is not None:
129-
logging.info(f"Match: {match}")
129+
logging.debug(f"Match: {match}")
130130
dims = [ match.group('xth'), match.group('yth'), match.group('zth') ]
131131
if (dat_format == "Dragonfly"):
132132
# Change Dragonfly thickness units to match NSI format
@@ -145,7 +145,7 @@ def __parse_format(line, dat_format):
145145

146146
match = re.match(pattern, line, flags=re.IGNORECASE)
147147
if match is not None:
148-
logging.info(f"Match: {match}")
148+
logging.debug(f"Match: {match}")
149149
return match.group('format')
150150

151151
def __parse_object_model(line, dat_format):
@@ -156,14 +156,14 @@ def __parse_object_model(line, dat_format):
156156

157157
match = re.match(pattern, line, flags=re.IGNORECASE)
158158
if match is not None:
159-
logging.info(f"Match: {match}")
159+
logging.debug(f"Match: {match}")
160160
return match.group('object_model')
161161

162162
def __is_dragonfly_dat_format(line):
163163
pattern = r"<\?xml\sversion=\"1\.0\"\?>"
164164
match = re.match(pattern, line, flags=re.IGNORECASE)
165165
if match is not None:
166-
logging.info(f"Match: {match}")
166+
logging.debug(f"Match: {match}")
167167
return True
168168

169169

0 commit comments

Comments
 (0)