sdfdf
This commit is contained in:
7
index.js
7
index.js
@@ -9,7 +9,7 @@ const express = require("express")
|
||||
// , { puppeteerErrors } = require("puppeteer-core/lib/cjs/puppeteer/common/Errors");
|
||||
|
||||
|
||||
logger.getContext = function getContext() {
|
||||
logger.getContext = function () {
|
||||
return {
|
||||
// hostname: hostname,
|
||||
// pid: process.pid,
|
||||
@@ -17,6 +17,11 @@ logger.getContext = function getContext() {
|
||||
app: 'Browser'
|
||||
};
|
||||
}
|
||||
logger.throwError = function (msg, info) {
|
||||
let error = new Error(msg)
|
||||
error.info = info
|
||||
throw error
|
||||
}
|
||||
var app = express();
|
||||
app.use(express.json());
|
||||
app.use(expressLogging(logger));
|
||||
|
||||
Reference in New Issue
Block a user