Add missing logger references.
Fix reference to logging module.
Cast UUID → str for concatenation.