mirror of
https://github.com/nicolabs/musiccast-repairkit.git
synced 2025-09-07 16:10:34 +02:00
default log level is now info (was debug)
This commit is contained in:
parent
f32c31f46a
commit
018cb8b589
|
@ -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.
|
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) :
|
This will log network activity (Node.js native) :
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const winston = require('winston');
|
const winston = require('winston');
|
||||||
|
|
||||||
module.exports = winston.createLogger({
|
module.exports = winston.createLogger({
|
||||||
level: 'debug',
|
level: 'info',
|
||||||
transports: [
|
transports: [
|
||||||
new winston.transports.Console()
|
new winston.transports.Console()
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue