Fixed middleware routing, removed redundant logging