fix the log output len