repalce print with app.logger