Add log for invalidargumentexception
Avoid potential error