Skip to content

No way to suppress logs #129

@Properko

Description

@Properko

Expected Behaviour

Providing a log object to the constructor should ensure I have control over all the log output.

Actual Behaviour

Extra log messages are logged from other adobe dependencies, e.g. https://github.com/adobe/node-httptransfer/blob/master/lib/randomfileaccess.js#L160

Platform and Version

"@adobe/aem-upload": "2.0.3"

Sample Code that illustrates the problem

import AemUploader from "@adobe/aem-upload";
const binaryUploader = new AemUploader.DirectBinaryUpload({
  log: {
    debug: (...theArguments) => undefined,
    info: (...theArguments) => undefined,
    warn: (...theArguments) =>
      console.info.apply(null, theArguments),
    error: (...theArguments) =>
      console.warn.apply(null, theArguments),
  }
});
binaryUploader.uploadFiles(...)

Logs taken while reproducing problem

Server accepts ranges for this transfer asset: true
1 transfer parts created (multipart target)
Transferred content range: [object Object]
Source has protocol 'file'
Getting file handle for reading file ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions