Change print to debug log