Comparing version 1.2.29 to 1.2.30
@@ -17,2 +17,3 @@ "use strict"; | ||
const config_1 = require("./config"); | ||
const vweb_core_1 = require("vweb-core"); | ||
let createError = require('http-errors'); | ||
@@ -48,3 +49,3 @@ let { util, LogicError } = require('vweb-core'); | ||
} | ||
let response = new Response_1.default(req, res, component, logger); | ||
let response = new Response_1.default(req, res, component, vweb_core_1.LoggerFactory.getLogger(controller)); | ||
let proxy = new Proxy(component, { | ||
@@ -51,0 +52,0 @@ get: (target, prop, receiver) => { |
@@ -160,5 +160,5 @@ "use strict"; | ||
const { req } = this; | ||
let info = `${this.controller.constructor.name} from ${req.ip} ${req.method} ${req.url} cost `; | ||
info += `${Date.now() - this.begin}ms`; | ||
this.logger.debug(i + info); | ||
let info = `${req.method} ${req.url} cost `; | ||
info += `${Date.now() - this.begin}ms from ${req.ip} ${i}`; | ||
this.logger.debug(info); | ||
} | ||
@@ -165,0 +165,0 @@ } |
{ | ||
"name": "vweb-mvc", | ||
"version": "1.2.29", | ||
"version": "1.2.30", | ||
"description": "mvc ", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139944
2240