Skip to content

Improper log message #1091

@albertoa

Description

@albertoa

File: lib/manager.js
Line 903: self.log.debug('client ' + authorized ? 'authorized' : 'unauthorized');

Regardless of authorization status this is producing the message: authorized

To fix it you can change it to:

self.log.debug('client ' + (authorized ? 'authorized' : 'unauthorized'));

which seems to handle the type and concatenation properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions