Would it not be better to use a logger, than the print statement.