Adjust logging to find error