Skip to content

Can't log a message with an object #24

@pkellner

Description

@pkellner

That is, when I do a try catch, I want to log the "e" of the try catch. I can create two log messages in a row like this but the second one is unlabled which is confusing. I can't use JSON.stringify because of circular reference errors.

 } catch (e) {
    logger.error(`server.ts:getSessionUrls errored:${e.message}`);
    logger.error(e);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions