Change logging code to PRINT_(LOG/WARN).