So my last attempt to fix $this failed horribly since i did not read the manual.  So instead, I just pass a value by reference and test after the logging happens