Fixed logging of Thing Id's and processing logic

Fixed logging of Thing Id's and processing logic