Prevent using logger middleware in production

Updating mount.js to prevent using logger middleware when in production mode.