Skip to content

Commit c3bcb31

Browse files
committed
Increase debugging logs.
1 parent 7807d2d commit c3bcb31

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/jobs/validator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class JobValidator {
3030
} catch (err) {
3131
if (err instanceof Finitio.TypeError) {
3232
logger.error('Invalid job payload', err);
33-
logger.debug('Input data does not respect the schema:', inputData);
33+
logger.debug({ inputData }, 'Input data does not respect the schema');
3434
throw DataValidationError.fromFinitioError('Invalid input data:', err);
3535
}
3636
throw err;

src/logger.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import bunyan from 'bunyan';
55
const logger = bunyan.createLogger({
66
name: 'arnavon',
77
version,
8+
level: 'debug',
89
serializers: bunyan.stdSerializers
910
});
1011

0 commit comments

Comments
 (0)