fixed logging for transformers