replaced print by logger user