Browse Source

Disable some logs in prod

master
meriadec 7 years ago
parent
commit
586bea9f1a
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 4
      src/internals/usb/manager/helpers.js

4
src/internals/usb/manager/helpers.js

@ -205,7 +205,9 @@ export async function getFirmwareInfo(transport: Transport<*>) {
function log(namespace: string, str: string = '', color?: string) {
namespace = namespace.padEnd(15)
const coloredNamespace = color ? chalk[color](namespace) : namespace
console.log(`${chalk.bold(`> ${coloredNamespace}`)} ${str}`) // eslint-disable-line no-console
if (__DEV__) {
console.log(`${chalk.bold(`> ${coloredNamespace}`)} ${str}`) // eslint-disable-line no-console
}
}
/**

Loading…
Cancel
Save