Logging only non null objects.