Skip to content

fix(logger): prevent "write after end" error during shutdown #951

fix(logger): prevent "write after end" error during shutdown

fix(logger): prevent "write after end" error during shutdown #951

Triggered via pull request December 11, 2025 16:39
Status Success
Total duration 1m 15s
Artifacts

ci.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
Tests (16): lib/winston/transports/file.js#L393
'options' is already declared in the upper scope on line 278 column 9
Tests (16): lib/winston/transports/file.js#L332
'buff' is already declared in the upper scope on line 286 column 9
Tests (16): lib/winston/transports/console.js#L52
Method 'log' has a complexity of 12. Maximum allowed is 11
Tests (16): lib/winston/transports/console.js#L52
Method 'log' has too many statements (19). Maximum allowed is 15
Tests (16): lib/winston/tail-file.js#L63
Arrow function has a complexity of 13. Maximum allowed is 11
Tests (16): lib/winston/tail-file.js#L63
Arrow function has too many statements (30). Maximum allowed is 15
Tests (16): lib/winston/logger.js#L230
Method 'log' has a complexity of 13. Maximum allowed is 11
Tests (16): lib/winston/logger.js#L230
Method 'log' has too many statements (27). Maximum allowed is 15
Tests (16): lib/winston/logger.js#L82
Method 'configure' has a complexity of 19. Maximum allowed is 11
Tests (16): lib/winston/logger.js#L82
Method 'configure' has too many statements (24). Maximum allowed is 15
Tests (18): lib/winston/transports/file.js#L393
'options' is already declared in the upper scope on line 278 column 9
Tests (18): lib/winston/transports/file.js#L332
'buff' is already declared in the upper scope on line 286 column 9
Tests (18): lib/winston/transports/console.js#L52
Method 'log' has a complexity of 12. Maximum allowed is 11
Tests (18): lib/winston/transports/console.js#L52
Method 'log' has too many statements (19). Maximum allowed is 15
Tests (18): lib/winston/tail-file.js#L63
Arrow function has a complexity of 13. Maximum allowed is 11
Tests (18): lib/winston/tail-file.js#L63
Arrow function has too many statements (30). Maximum allowed is 15
Tests (18): lib/winston/logger.js#L230
Method 'log' has a complexity of 13. Maximum allowed is 11
Tests (18): lib/winston/logger.js#L230
Method 'log' has too many statements (27). Maximum allowed is 15
Tests (18): lib/winston/logger.js#L82
Method 'configure' has a complexity of 19. Maximum allowed is 11
Tests (18): lib/winston/logger.js#L82
Method 'configure' has too many statements (24). Maximum allowed is 15
Tests (20): lib/winston/transports/file.js#L393
'options' is already declared in the upper scope on line 278 column 9
Tests (20): lib/winston/transports/file.js#L332
'buff' is already declared in the upper scope on line 286 column 9
Tests (20): lib/winston/transports/console.js#L52
Method 'log' has a complexity of 12. Maximum allowed is 11
Tests (20): lib/winston/transports/console.js#L52
Method 'log' has too many statements (19). Maximum allowed is 15
Tests (20): lib/winston/tail-file.js#L63
Arrow function has a complexity of 13. Maximum allowed is 11
Tests (20): lib/winston/tail-file.js#L63
Arrow function has too many statements (30). Maximum allowed is 15
Tests (20): lib/winston/logger.js#L230
Method 'log' has a complexity of 13. Maximum allowed is 11
Tests (20): lib/winston/logger.js#L230
Method 'log' has too many statements (27). Maximum allowed is 15
Tests (20): lib/winston/logger.js#L82
Method 'configure' has a complexity of 19. Maximum allowed is 11
Tests (20): lib/winston/logger.js#L82
Method 'configure' has too many statements (24). Maximum allowed is 15