Overwrite log files
This commit is contained in:
parent
9c9dd97f33
commit
a276d8f8a2
@ -83,7 +83,9 @@ async function removeExcessRoomMembers() {
|
||||
)
|
||||
const memberMapping = await getMappingByMatrixId(actualMember)
|
||||
if (!memberMapping || !memberMapping.accessToken) {
|
||||
throw new Error(`Could not find access token for member ${actualMember}, this is a bug`)
|
||||
throw new Error(
|
||||
`Could not find access token for member ${actualMember}, this is a bug`
|
||||
)
|
||||
}
|
||||
|
||||
await axios.post(
|
||||
|
||||
@ -8,10 +8,12 @@ export default winston.createLogger({
|
||||
filename: 'warn.log',
|
||||
level: 'warn',
|
||||
silent: process.env.NODE_ENV === 'test',
|
||||
options: { flags: 'w' },
|
||||
}),
|
||||
new winston.transports.File({
|
||||
filename: 'combined.log',
|
||||
silent: process.env.NODE_ENV === 'test',
|
||||
options: { flags: 'w' },
|
||||
}),
|
||||
],
|
||||
format: winston.format.combine(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user