code: function (app, next) {
  
        if (hasDebug) {
          app.use(morgan(''
            + 'req:'.magenta + '\\n'
            + '  method : '.cyan + ':method HTTP/:http-version\\n'
            + '  path   : '.cyan + ':url', {
            immediate: true
          }));
        }
  
        next(null, app);
      }
docs: middleware：print request