(bug) Fix morgan middleware to stop deprecation messages