Fix log message when method doesn't have parameters