Commit 0f54cc6
committed
fix: use silly level on production Console transport
Winston 3 treats a transport's `level` independently from the logger's
level -- the logger's level is only the default for transports that
don't specify their own. Without setting a level on the new production
Console transport, it inherited the logger's level (APP.LOG_LEVEL,
default info), so verbose/debug lines never reached journalctl even
though the existing debug-%DATE%.log file captured them.
Set `level: 'silly'` on the Console transport so journalctl receives
every log line the app emits, regardless of APP.LOG_LEVEL. File
transports are untouched.1 parent 0adf362 commit 0f54cc6
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
| 132 | + | |
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
| |||
0 commit comments