I am trying to write a midlleware about logging unusual requests on express js. I could not understand promise structure very well. my setup is as follows;
storing er