Skip to content

Commit

Permalink
#58 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xeronimus@gmail.com authored and xeronimus@gmail.com committed Jun 25, 2020
1 parent 2be5f02 commit e0a3f95
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions server/src/commandProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,23 +235,25 @@ function logCommand(command, userId) {
command
);
} else if (LOGGER.isLevelEnabled('info')) {
LOGGER.info(`HANDLING COMMAND user=${userId} room=${command.roomId} ${command.name} ${command.id}`);
LOGGER.info(
`HANDLING COMMAND user=${userId} room=${command.roomId} ${command.name} ${command.id}`
);
}
}

function logEvents(context, correlationId) {
if (LOGGER.isLevelEnabled('debug')) {
LOGGER.debug(
`PRODUCED EVENTS user=${context.userId} room=${context.room.get('id')}` +
context.eventsToSend.map((e) => e.name).join(', '),
context.eventsToSend.map((e) => e.name).join(', '),
context.eventsToSend,
`correlationId=${correlationId}`
);
} else if (LOGGER.isLevelEnabled('info')) {
LOGGER.info(
`PRODUCED EVENTS user=${context.userId} room=${context.room.get('id')} ` +
context.eventsToSend.map((e) => e.name).join(', ') +
` correlationId=${correlationId}`
context.eventsToSend.map((e) => e.name).join(', ') +
` correlationId=${correlationId}`
);
}
}
Expand Down

0 comments on commit e0a3f95

Please sign in to comment.