diff options
author | Vitaly Takmazov | 2022-10-30 02:02:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | fc96a9a206a825171da87a7f23cc2ea16b1d645d (patch) | |
tree | f95822ce1378bba908d1962c2003fcb038824e6f /vnext/server | |
parent | 84edf4b6bf806f2ec023a0eef3ec475923a867d5 (diff) |
use debug in server code
Diffstat (limited to 'vnext/server')
-rw-r--r-- | vnext/server/index.js | 3 |
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 + '...'); }); |