1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

redirected logs to files

This commit is contained in:
Massimo Candela
2019-06-30 01:42:58 +02:00
parent 8e133351a4
commit bae0bca63c
7 changed files with 32 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
import Report from "./report";
import nodemailer from "nodemailer";
import logger from '../logger';
export default class ReportEmail extends Report {
@@ -30,7 +32,10 @@ export default class ReportEmail extends Report {
text: "Hello world?"
})
.catch(error => {
console.log("log the error properly!", error);
logger.log({
level: 'error',
message: error
});
})
}
}