Updated logging to actually work :)