Issue with my logger, replaced to puts