Providing log info if parameters are wrong