Skip to content

Commit

Permalink
Merge pull request #153 from simonsobs/quiet-logs
Browse files Browse the repository at this point in the history
Suppress hk logger.info messages
  • Loading branch information
mhasself authored Aug 17, 2023
2 parents 047534c + f3d3f9e commit 5d2716e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/hk/getdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def check_overlap(time_range):
data = {}
timelines = {}
for filename, file_map in sorted(files.items()):
hk_logger.info('get_data: reading %s' % filename)
hk_logger.debug('get_data: reading %s' % filename)
reader = so3g.G3IndexedReader(filename)
for byte_offset, frame_info in sorted(file_map.items()):
# Seek and decode.
Expand Down Expand Up @@ -877,7 +877,7 @@ def load_range(start, stop, fields=None, alias=None,
keepers = []
for name, field in zip(alias, fields):
if field not in all_fields:
hk_logger.info('`{}` not in available fields, skipping'.format(field))
hk_logger.debug('`{}` not in available fields, skipping'.format(field))
continue
keepers.append((name, field))
data = cat.simple([f for n, f in keepers],
Expand Down
2 changes: 1 addition & 1 deletion python/hk/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__(self, start=None, stop=None, config=None,
data_dir = os.environ['OCS_DATA_DIR']

# Walk the files -- same approach as load_ranges
logger.info('Scanning %s (pre_proc=%s)' % (data_dir, pre_proc_dir))
logger.debug('Scanning %s (pre_proc=%s)' % (data_dir, pre_proc_dir))
hksc = getdata.HKArchiveScanner(pre_proc_dir=pre_proc_dir)
for folder in range(int(start / 1e5), int(stop / 1e5) + 1):
base = os.path.join(data_dir, str(folder))
Expand Down

0 comments on commit 5d2716e

Please sign in to comment.