mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
Add 'debug' in place of 'logException'
Change-type: patch Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@resin.io>
This commit is contained in:
parent
4035176d88
commit
207c0d612d
@ -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([])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user