Moved logException to OCP\Util class