reduce log max length.