limit logging length;