mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(server) add express logger (if exist)
This commit is contained in:
parent
7b92cb55aa
commit
b88b10d059
1 changed files with 6 additions and 2 deletions
|
|
@ -96,7 +96,9 @@
|
|||
lHTTPServer = function() {
|
||||
if (express) {
|
||||
app = express(),
|
||||
app.all('*', controller);
|
||||
app.use(express.logger('dev'))
|
||||
.all('*', controller);
|
||||
|
||||
Server = http.createServer(app);
|
||||
} else
|
||||
Server = http.createServer(controller);
|
||||
|
|
@ -162,7 +164,9 @@
|
|||
|
||||
/* added supporting of Russian language in directory names */
|
||||
lPath = Querystring.unescape(lPath);
|
||||
Util.log(pReq.method + ' ' + lPath + lQuery);
|
||||
|
||||
if (!express)
|
||||
Util.log(pReq.method + ' ' + lPath + lQuery);
|
||||
|
||||
var lData = {
|
||||
name : lPath,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue