fix bug about percentage and replace the log config