Skip to content

node-custom-server morgan logging not working #66

Closed
@mbrowne

Description

@mbrowne

In the node-custom-server template, this line is too late:

app.use(morgan("tiny"));

This means that morgan won't run at all.

Personally I like just logging in production, since logging every request in development can be noisy. So I would move the morgan() call right below this line:

It could alternatively be moved above the "/assets" handler if you wanted to log requests to static assets as well.

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