Skip to content

Remove log calls to root logger #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mbed_lstools/lstools_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ def _update_device_from_htm(self, device):
device.update({"daplink_%s" % f.lower().replace(' ', '_'): v
for f, v in daplink_info.items()})
if htm_target_id:
logging.debug("Found htm target id, %s, for usb target id %s",
logger.debug("Found htm target id, %s, for usb target id %s",
htm_target_id, device['target_id_usb_id'])
device['target_id'] = htm_target_id
else:
logging.warning("Could not read htm on from usb id %s. "
logger.warning("Could not read htm on from usb id %s. "
"Falling back to usb id",
device['target_id_usb_id'])
device['target_id'] = device['target_id_usb_id']
Expand Down Expand Up @@ -395,10 +395,10 @@ def get_json_data_from_file(self, json_spec_filename, verbose=False):
try:
return json.load(data_file)
except ValueError as json_error_msg:
logging.error("Parsing file(%s): %s", json_spec_filename, json_error_msg)
logger.error("Parsing file(%s): %s", json_spec_filename, json_error_msg)
return None
except IOError as fileopen_error_msg:
logging.warning(fileopen_error_msg)
logger.warning(fileopen_error_msg)
return None

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