Skip to content

winston throw error  #753

@fengkx

Description

@fengkx
TypeError: self.log is not a function
    at process.DerivedLogger.<computed> (/home/fengkx/project/NodeRSSBot/node_modules/winston/lib/winston/create-logger.js:97:19)
    at process.emit (node:events:390:28)
    at process._fatalException (node:internal/process/execution:170:25)
    at processPromiseRejections (node:internal/process/promises:246:11)
    at processTicksAndRejections (node:internal/process/task_queues:97:32)

winston throw error because this binding to process, But I can't find why this happen, so I just fix it with proxy 86a74b3

Related upstream issue: winstonjs/winston#1648

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalExternal dependencies issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions