Browse Source

Try logging info again

master
John Shaver 3 months ago
parent
commit
549d3a5a98
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      index.js

+ 2
- 1
index.js View File

@@ -7,10 +7,11 @@ let getTemplates = require('./templater');
7 7
 let errorSender = require('./errorSender');
8 8
 exports.register = function() {
9 9
   outbound = this.haraka_require('./outbound');
10
+  let plugin = this;
10 11
   this.register_hook('hook_init_http', function(next, server) {
11 12
     server.http.app.use('/webSend', setupRoutes(server.http.express.Router()));
12 13
     server.http.app.get('/test', (req, res) => res.send("HELLO!"));
13
-    console.log(server.http.app._router.stack);
14
+    plugin.loginfo(server.http.app._router.stack);
14 15
     next();
15 16
   });
16 17
 }

Loading…
Cancel
Save