fix(gui): Re-enable printing progress in console (#1853)

Change-Type: patch
This commit is contained in:
Jonas Hermsmeier 2017-11-17 14:36:21 +01:00 committed by GitHub
parent 19275a5ba4
commit 0e02998faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,20 +185,15 @@ app.run(() => {
const currentFlashState = flashState.getFlashState()
// There is usually a short time period between the `isFlashing()`
// NOTE: There is usually a short time period between the `isFlashing()`
// property being set, and the flashing actually starting, which
// might cause some non-sense flashing state logs including
// `undefined` values.
//
// We use the presence of `.eta` to determine that the actual
// writing started.
if (!currentFlashState.eta) {
analytics.logDebug(
`Progress (${currentFlashState.type}): ` +
`${currentFlashState.percentage}% at ${currentFlashState.speed} MB/s ` +
`(eta ${currentFlashState.eta}s)`
)
}
analytics.logDebug(
`Progress (${currentFlashState.type}): ` +
`${currentFlashState.percentage}% at ${currentFlashState.speed} MB/s ` +
`(eta ${currentFlashState.eta}s)`
)
windowProgress.set(currentFlashState)
})