We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf2776 commit ec184cfCopy full SHA for ec184cf
src/logger.js
@@ -34,7 +34,7 @@ const exportMod = {
34
for (const l of levels) {
35
if (isFunction(log[l])) {
36
exportMod[l] = function () {
37
- if (LEVEL_MAP[curLevel] >= LEVEL_MAP[l]) {
+ if (LEVEL_MAP[l] >= LEVEL_MAP[curLevel]) {
38
log[l].apply(log, arguments);
39
}
40
};
src/server.js
@@ -99,6 +99,7 @@ function startServer(opts) {
99
host,
100
httpsEnabled,
101
httpsOptions,
102
+ logLevel,
103
middlewares,
104
onServerStart,
105
port,
@@ -124,6 +125,9 @@ function startServer(opts) {
124
125
126
127
128
+ // log settings
129
+ log.setLevel(logLevel);
130
+
131
// middlewares
132
app.use(koaBodyParser(bodyParserConfig));
133
0 commit comments