INT-3460: fix compile error and add log