default log level is now info (was debug)

This commit is contained in:
nicobo 2021-06-11 00:28:55 +02:00
parent f32c31f46a
commit 018cb8b589
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F
2 changed files with 3 additions and 3 deletions

View file

@ -149,9 +149,9 @@ Deploy on a swarm cluster :
Logging is configured in the [`logging.js`](logging.js) module : feel free to override it locally or in a custom Docker image.
There is a special `scripts/debug.js` script that does nothing but printing debug informations. It is simply loaded as a scenario :
There is a special `scripts/debug.js` script that does nothing but printing debug informations. It is simply loaded as a scenario (you need to set log level to *debug* at least) :
node . -s ./scripts/sync-volume.js ./scripts/debug.js --source=192.168.1.42 ...
node . -s ./scripts/sync-volume.js ./scripts/debug.js -l debug --source=192.168.1.42 ...
This will log network activity (Node.js native) :

View file

@ -1,7 +1,7 @@
const winston = require('winston');
module.exports = winston.createLogger({
level: 'debug',
level: 'info',
transports: [
new winston.transports.Console()
],