koajs / koajs/examples

compose: undefined in logger

Open
#109 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.5k
Forks
721
PR merge metrics
No merged PRs in 30d

Description

there is a "undefined" when I run the compose/app.js
undefined / - 6
undefined / - 1
undefined /aaaa - 0

I think that the code 'this' will be modified to 'ctx' in the 'logger()' function.

Contributor guide

Open the contributing guide

Research direction

Start with compose/app.js and inspect the logger() function, focusing on the reported use of `this` versus `ctx`. Run the app to reproduce the `undefined` log entries; done means the logger output no longer begins with `undefined` for the shown requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.