4,500
edits
add turn off connection logging |
|||
Line 3: | Line 3: | ||
=== turn off connection logging === | === turn off connection logging === | ||
Setting logConnection to false in bs-config.json did not work. The connection is logged by a middleware called connect-logger and you can disable it by creating <span class="package">bs-config. | Setting logConnection to false in bs-config.json did not work. The connection is logged by a middleware called connect-logger and you can disable it by creating <span class="package">bs-config.js</span> with the following content. | ||
<source lang=" | <source lang="js" highlight="2"> | ||
{ | module.exports = { | ||
server: { middleware: { 0: null }} | |||
}; | |||
</source> | |||
} | |||
=== turn off file change updates === | |||
Add <span class="shell">logFileChanges</span> line to disable logging of file change updates. | |||
<source lang="js" highlight="3"> | |||
module.exports = { | |||
server: { middleware: { 0: null }}, | |||
logFileChanges: false | |||
}; | |||
</source> | </source> | ||