Skip to content

Commit ec184cf

Browse files
committed
backup
1 parent 1cf2776 commit ec184cf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const exportMod = {
3434
for (const l of levels) {
3535
if (isFunction(log[l])) {
3636
exportMod[l] = function () {
37-
if (LEVEL_MAP[curLevel] >= LEVEL_MAP[l]) {
37+
if (LEVEL_MAP[l] >= LEVEL_MAP[curLevel]) {
3838
log[l].apply(log, arguments);
3939
}
4040
};

src/server.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function startServer(opts) {
9999
host,
100100
httpsEnabled,
101101
httpsOptions,
102+
logLevel,
102103
middlewares,
103104
onServerStart,
104105
port,
@@ -124,6 +125,9 @@ function startServer(opts) {
124125
}
125126
}
126127

128+
// log settings
129+
log.setLevel(logLevel);
130+
127131
// middlewares
128132
app.use(koaBodyParser(bodyParserConfig));
129133

0 commit comments

Comments
 (0)