Skip to content

Commit

Permalink
ccommon: broadbill client: very simple test client
Browse files Browse the repository at this point in the history
RB_ID=729816
  • Loading branch information
kevyang committed Aug 31, 2015
1 parent 0a65cdd commit 7151779
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/cc_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ log_setup(log_metrics_st *metrics)
log_stderr("set up the %s module", LOG_MODULE_NAME);

log_metrics = metrics;
LOG_METRIC_INIT(log_metrics);

if (metrics != NULL) {
LOG_METRIC_INIT(log_metrics);
}

if (log_init) {
log_stderr("%s has already been setup, overwrite", LOG_MODULE_NAME);
Expand Down
5 changes: 4 additions & 1 deletion src/channel/cc_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ tcp_setup(int backlog, tcp_metrics_st *metrics)

max_backlog = backlog;
tcp_metrics = metrics;
TCP_METRIC_INIT(tcp_metrics);

if (metrics != NULL) {
TCP_METRIC_INIT(tcp_metrics);
}

if (tcp_init) {
log_warn("%s has already been setup, overwrite", TCP_MODULE_NAME);
Expand Down

0 comments on commit 7151779

Please sign in to comment.