Fixed a bug that log after the specified route is not output.