Change persistent log to gpr_log

pull/19050/head
ZhouyihaiDing 6 years ago
parent 7de22dbb16
commit 1d5357d1bb
  1. 7
      src/php/ext/grpc/channel.c

@ -30,6 +30,7 @@
#include <grpc/grpc_security.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "completion_queue.h"
#include "channel_credentials.h"
@ -247,12 +248,12 @@ void create_and_add_channel_to_persistent_list(
// If no channel can be deleted from the persistent map,
// do not persist this one.
create_channel(channel, target, args, creds);
php_printf("[Warning] The number of channel for the"
gpr_log(GPR_INFO, "[Warning] The number of channel for the"
" target %s is maxed out bounded.\n", target);
php_printf("[Warning] Target upper bound: %d. Current size: %d.\n",
gpr_log(GPR_INFO, "[Warning] Target upper bound: %d. Current size: %d.\n",
target_bound_status->upper_bound,
target_bound_status->current_count);
php_printf("[Warning] Target %s will not be persisted.\n", target);
gpr_log(GPR_INFO, "[Warning] Target %s will not be persisted.\n", target);
return;
}
}

Loading…
Cancel
Save