fix(xo-server/api): never log pool.listMissingPatches or hosts.stats
This commit is contained in:
parent
ab1549f60e
commit
79c3667fd4
@ -354,12 +354,12 @@ export default class Api {
|
||||
duration: Date.now() - startTime,
|
||||
error: serializedError,
|
||||
})
|
||||
}
|
||||
|
||||
if (app.config.get('verboseApiLogsOnErrors')) {
|
||||
log.warn(message, { error })
|
||||
} else {
|
||||
log.warn(`${userName} | ${name}(...) [${ms(Date.now() - startTime)}] =!> ${error}`)
|
||||
if (app.config.get('verboseApiLogsOnErrors')) {
|
||||
log.warn(message, { error })
|
||||
} else {
|
||||
log.warn(`${userName} | ${name}(...) [${ms(Date.now() - startTime)}] =!> ${error}`)
|
||||
}
|
||||
}
|
||||
|
||||
const xoError = XAPI_ERROR_TO_XO_ERROR[error.code]
|
||||
|
Loading…
Reference in New Issue
Block a user