From 207c0d612d7e5f3cc9ccec867c46eeb902f35075 Mon Sep 17 00:00:00 2001 From: Lorenzo Alberto Maria Ambrosi Date: Thu, 4 Oct 2018 21:20:39 +0200 Subject: [PATCH] Add 'debug' in place of 'logException' Change-type: patch Signed-off-by: Lorenzo Alberto Maria Ambrosi --- lib/sdk/adapters/usbboot/usb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sdk/adapters/usbboot/usb.js b/lib/sdk/adapters/usbboot/usb.js index 1e70c118..df5460d9 100644 --- a/lib/sdk/adapters/usbboot/usb.js +++ b/lib/sdk/adapters/usbboot/usb.js @@ -18,7 +18,7 @@ const _ = require('lodash') const Bluebird = require('bluebird') -const analytics = require('../../../gui/app/modules/analytics') +const debug = require('debug')('etcher:sdk:usbboot') // The USB module calls `libusb_init`, which will fail // if the device we're running in has no USB controller @@ -29,7 +29,7 @@ const usb = (() => { try { return require('usb') } catch (error) { - analytics.logException(error) + debug('Couldn\'t require "usb". Reason: ', error.message, error.stack) return { getDeviceList: _.constant([]) }