Skip to content

Commit 13663cd

Browse files
Merge pull request #286 from bridadan/remove_root_logging
Remove log calls to root logger
2 parents e5bac65 + 574e1ec commit 13663cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mbed_lstools/lstools_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ def _update_device_from_htm(self, device):
208208
device.update({"daplink_%s" % f.lower().replace(' ', '_'): v
209209
for f, v in daplink_info.items()})
210210
if htm_target_id:
211-
logging.debug("Found htm target id, %s, for usb target id %s",
211+
logger.debug("Found htm target id, %s, for usb target id %s",
212212
htm_target_id, device['target_id_usb_id'])
213213
device['target_id'] = htm_target_id
214214
else:
215-
logging.warning("Could not read htm on from usb id %s. "
215+
logger.warning("Could not read htm on from usb id %s. "
216216
"Falling back to usb id",
217217
device['target_id_usb_id'])
218218
device['target_id'] = device['target_id_usb_id']
@@ -395,10 +395,10 @@ def get_json_data_from_file(self, json_spec_filename, verbose=False):
395395
try:
396396
return json.load(data_file)
397397
except ValueError as json_error_msg:
398-
logging.error("Parsing file(%s): %s", json_spec_filename, json_error_msg)
398+
logger.error("Parsing file(%s): %s", json_spec_filename, json_error_msg)
399399
return None
400400
except IOError as fileopen_error_msg:
401-
logging.warning(fileopen_error_msg)
401+
logger.warning(fileopen_error_msg)
402402
return None
403403

404404
@deprecated("This method will be removed from the public API. "

0 commit comments

Comments
 (0)