comparison src/core/ngx_cycle.c @ 6480:f01ab2dbcfdc

Fixed logging.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 31 Mar 2016 02:33:57 +0300
parents fd4b52e74f96
children 3a50ccd94333
comparison
equal deleted inserted replaced
6479:dc92298b1852 6480:f01ab2dbcfdc
1311 1311
1312 for (n = 0; n < cycle[i]->connection_n; n++) { 1312 for (n = 0; n < cycle[i]->connection_n; n++) {
1313 if (cycle[i]->connections[n].fd != (ngx_socket_t) -1) { 1313 if (cycle[i]->connections[n].fd != (ngx_socket_t) -1) {
1314 found = 1; 1314 found = 1;
1315 1315
1316 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "live fd:%d", n); 1316 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "live fd:%ui", n);
1317 1317
1318 break; 1318 break;
1319 } 1319 }
1320 } 1320 }
1321 1321
1322 if (found) { 1322 if (found) {
1323 live = 1; 1323 live = 1;
1324 continue; 1324 continue;
1325 } 1325 }
1326 1326
1327 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "clean old cycle: %d", i); 1327 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "clean old cycle: %ui", i);
1328 1328
1329 ngx_destroy_pool(cycle[i]->pool); 1329 ngx_destroy_pool(cycle[i]->pool);
1330 cycle[i] = NULL; 1330 cycle[i] = NULL;
1331 } 1331 }
1332 1332
1333 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "old cycles status: %d", live); 1333 ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "old cycles status: %ui", live);
1334 1334
1335 if (live) { 1335 if (live) {
1336 ngx_add_timer(ev, 30000); 1336 ngx_add_timer(ev, 30000);
1337 1337
1338 } else { 1338 } else {