title: how to fix problem with console.log in express
body: <p>my express server stopped performing console.log when processing requests</p>
  
  <p>On such issues, it is usually recommended to app.use (express.static (srPath)) to announce before routing, this recommendation is respected.
  I have a problem with statics, when I comment on this line, logging starts to work. I have no idea why this is happening
  Express version: "^ 4.16.4" used all time
  repo: <a href="https://gitlab.com/igor_borisch/react-redux-node-app" rel="nofollow noreferrer">https://gitlab.com/igor_borisch/react-redux-node-app</a></p>
  
  <pre><code>var express = require('express');
  var bodyParser = require('body-parser');
  var path = require('path');
  var axios = require ('axios');
  var app = express();
  var srcPath = path.join(__dirname, './public');
  
  
  app.use(express.static(srcPath));
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: true }));
  
  
  app.get('/', (req, res) =&gt; {
      console.log(srcPath);
      res.sendFile('./index.html', {root: srcPath});
  });
  
  
  app.get('/get-currencies', (req,res) =&gt; {
      axios.get('https://api.exchangeratesapi.io/latest?base=RUB')
          .then(function (response) {
              console.log(response.data);
              res.send(JSON.stringify(response.data));
          });
  });
  
  app.listen(3001, () =&gt; console.log('app listen on port 3001'));
  </code></pre>