Skip to content

Commit

Permalink
fix(nsis): keep injected logger state (#5596)
Browse files Browse the repository at this point in the history
This change avoids loosing state in the logger in case users inject a logger class instead of an object with functions.
  • Loading branch information
jupp0r authored Feb 18, 2021
1 parent 88c9319 commit be4a1fb
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,8 @@ export abstract class DifferentialDownloader {

const range = `bytes=${operation.start}-${operation.end - 1}`
requestOptions.headers!!.range = range

const debug = this.logger.debug
if (debug != null) {
debug(`download range: ${range}`)
}

this.logger?.debug?.(`download range: ${range}`)

// We are starting to download
if (downloadInfoTransform) {
Expand Down

0 comments on commit be4a1fb

Please sign in to comment.