aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-30 02:02:45 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commitfc96a9a206a825171da87a7f23cc2ea16b1d645d (patch)
treef95822ce1378bba908d1962c2003fcb038824e6f /vnext/server/index.js
parent84edf4b6bf806f2ec023a0eef3ec475923a867d5 (diff)
use debug in server code
Diffstat (limited to 'vnext/server/index.js')
-rw-r--r--vnext/server/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js
index c347739f..7479393a 100644
--- a/vnext/server/index.js
+++ b/vnext/server/index.js
@@ -2,6 +2,7 @@ import express from 'express';
import { raw } from 'body-parser';
import cors from 'cors';
import config from 'config';
+var debug = require('debug')('http');
// we'll talk about this in a minute:
import serverRenderer from './middleware/renderer';
@@ -41,5 +42,5 @@ app.listen(PORT, (error) => {
return console.log('something bad happened', error);
}
- console.log('listening on ' + PORT + '...');
+ debug('listening on ' + PORT + '...');
});