Skip to content

Commit

Permalink
Add log for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbin579 committed Jun 13, 2014
1 parent 0edee61 commit 7961cb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gryphon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ static int retrieve_client_ips()
for (i = 1; i < 255; i++) {
sprintf(q, "%d", i);
ip = inet_addr(tmp_ip);
tc_log_debug1(LOG_DEBUG, 0, "clt ip addr:%s", tmp_ip);
if (check_client_ip_valid(ip)) {
clt_settings.valid_ips[count++] = ip;
if (count == M_CLIENT_IP_NUM) {
Expand Down Expand Up @@ -631,8 +632,10 @@ set_details()
tc_log_info(LOG_ERR, 0, "please set the -c parameter");
return -1;
}
retrieve_client_ips();

tc_log_info(LOG_NOTICE, 0, "client ips:%s", clt_settings.raw_clt_ips);

retrieve_client_ips();

if (clt_settings.par_connections <= 0) {
clt_settings.par_connections = 1;
Expand Down

0 comments on commit 7961cb3

Please sign in to comment.