check when logging just an object