Merge pull request #19050 from ZhouyihaiDing/persistent_channel_use_gpr_log

[PHP] Use gpr_log for printing persistent channel warning logs
pull/19074/head
Zhouyihai Ding 6 years ago committed by GitHub
commit 0e405388cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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