Change some messages from info to debug, route all soap info to debug (#151)

This commit is contained in:
Simon J
2023-03-13 08:47:32 +11:00
committed by GitHub
parent d4bed77c54
commit 7f743aaa7e
2 changed files with 5 additions and 4 deletions

View File

@@ -374,7 +374,7 @@ function server(
const id = req.params["id"]!; const id = req.params["id"]!;
const trace = uuid(); const trace = uuid();
logger.info( logger.debug(
`${trace} bnb<- ${req.method} ${req.path}?${JSON.stringify( `${trace} bnb<- ${req.method} ${req.path}?${JSON.stringify(
req.query req.query
)}, headers=${JSON.stringify({ ...req.headers, "bnbt": "*****", "bnbk": "*****" })}` )}, headers=${JSON.stringify({ ...req.headers, "bnbt": "*****", "bnbk": "*****" })}`
@@ -409,7 +409,7 @@ function server(
.then((stream) => ({ musicLibrary: it, stream })) .then((stream) => ({ musicLibrary: it, stream }))
) )
.then(({ musicLibrary, stream }) => { .then(({ musicLibrary, stream }) => {
logger.info( logger.debug(
`${trace} bnb<- stream response from music service for ${id}, status=${ `${trace} bnb<- stream response from music service for ${id}, status=${
stream.status stream.status
}, headers=(${JSON.stringify(stream.headers)})` }, headers=(${JSON.stringify(stream.headers)})`
@@ -435,7 +435,7 @@ function server(
sendStream: boolean; sendStream: boolean;
nowPlaying: boolean; nowPlaying: boolean;
}) => { }) => {
logger.info( logger.debug(
`${trace} bnb-> ${ `${trace} bnb-> ${
req.path req.path
}, status=${status}, headers=${JSON.stringify(headers)}` }, status=${status}, headers=${JSON.stringify(headers)}`

View File

@@ -1066,8 +1066,9 @@ function bindSmapiSoapServiceToExpress(
soapyService.log = (type, data) => { soapyService.log = (type, data) => {
switch (type) { switch (type) {
// routing all soap info messages to debug so less noisy
case "info": case "info":
logger.info({ level: "info", data }); logger.debug({ level: "info", data });
break; break;
case "warn": case "warn":
logger.warn({ level: "warn", data }); logger.warn({ level: "warn", data });