Skip to content

Commit bab79b1

Browse files
authored
fix(Statement): Add Error Log to show failed pushing to Redis (#873)
1 parent 55e67b4 commit bab79b1

File tree

1 file changed

+2
-1
lines changed
  • src/apps/statements/service/storeStatements

1 file changed

+2
-1
lines changed

src/apps/statements/service/storeStatements/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import AttachmentModel from '../../models/AttachmentModel';
55
import StoreStatementsOptions from '../../serviceFactory/options/StoreStatementsOptions';
66
import { STATEMENT_WRITE_SCOPES } from '../../utils/scopes';
77
import Config from '../Config';
8+
import logger from '../../../../logger';
89
import checkAttachments from './checkAttachments';
910
import checkVoiders from './checkVoiders';
1011
import createAttachments from './createAttachments';
@@ -91,7 +92,7 @@ export default (config: Config) => {
9192
})
9293
.catch((err) => {
9394
/* istanbul ignore next */
94-
console.error(err);
95+
logger.error('emitNewStatements error', err);
9596
});
9697
}
9798

0 commit comments

Comments
 (0)