*/
#ifdef EXAMPLE_LOG_EACH
- ap_log_perror(file, line, APLOG_MODULE_INDEX, APLOG_NOTICE, 0, p, "%s", note);
+ ap_log_perror(file, line, APLOG_MODULE_INDEX, APLOG_NOTICE, 0, p,
+ APLOGNO(03297) "%s", note);
#endif
}
lua_getinfo(L, "Sl", &dbg);
msg = luaL_checkstring(L, 2);
+ /* Intentional no APLOGNO */
ap_log_error(dbg.source, dbg.currentline, APLOG_MODULE_INDEX, level, 0,
cmd->server, "%s", msg);
return 0;
lua_getinfo(L, "Sl", &dbg);
msg = luaL_checkstring(L, 2);
+ /* Intentional no APLOGNO */
ap_log_rerror(dbg.source, dbg.currentline, APLOG_MODULE_INDEX, level, 0,
r, "%s", msg);
return 0;
const char **elts = (const char **)arr->elts;
int i;
+ /* Intentional no APLOGNO */
ap_log_error(file, line, module_index, level,
0, s, "%s", desc);
for (i = 0; i < arr->nelts; i++) {
+ /* Intentional no APLOGNO */
ap_log_error(file, line, module_index, level,
0, s, ">>%s", elts[i]);
}
rc = init_pollset(tpool);
if (rc != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, rc, ap_server_conf,
+ APLOGNO(03266)
"failed to initialize pollset, "
"attempting to shutdown process gracefully");
signal_threads(ST_GRACEFUL);
}
if (!APR_STATUS_IS_TIMEUP(rc)) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rc, ap_server_conf,
+ APLOGNO(03267)
"apr_pollset_poll failed. Attempting to "
"shutdown process gracefully");
signal_threads(ST_GRACEFUL);
disable_listensocks(process_slot);
listeners_disabled = 1;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf,
+ APLOGNO(03268)
"All workers busy, not accepting new conns "
"in this process");
}
if (!listeners_disabled)
disable_listensocks(process_slot);
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf,
+ APLOGNO(03269)
"Too many open connections (%u), "
"not accepting new conns in this process",
apr_atomic_read32(&connection_count));
rv = ap_queue_info_set_idle(worker_queue_info, NULL);
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
+ APLOGNO(03270)
"ap_queue_info_set_idle failed. Attempting to "
"shutdown process gracefully.");
signal_threads(ST_GRACEFUL);
if (loops % 120 == 0) { /* every couple of minutes */
if (prev_threads_created == threads_created) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf,
+ APLOGNO(03271)
"child %" APR_PID_T_FMT " isn't taking over "
"slots very quickly (%d of %d)",
ap_my_pid, threads_created,
if ((num_listensocks = ap_setup_listeners(ap_server_conf)) < 1) {
ap_log_error(APLOG_MARK, APLOG_ALERT | level_flags, 0,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03272)
"no listening sockets available, shutting down");
return DONE;
}
if ((rv = ap_duplicate_listeners(pconf, ap_server_conf,
&listen_buckets, &num_buckets))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03273)
"could not duplicate listeners");
return DONE;
}
for (i = 0; i < num_buckets; i++) {
if ((rv = ap_mpm_podx_open(pconf, &all_buckets[i].pod))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03274)
"could not open pipe-of-death");
return DONE;
}
if ((num_listensocks = ap_setup_listeners(ap_server_conf)) < 1) {
ap_log_error(APLOG_MARK, APLOG_ALERT | level_flags, 0,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03275)
"no listening sockets available, shutting down");
return DONE;
}
if ((rv = ap_duplicate_listeners(pconf, ap_server_conf,
&listen_buckets, &num_buckets))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03276)
"could not duplicate listeners");
return DONE;
}
if (!one_process && /* no POD in one_process mode */
(rv = ap_mpm_pod_open(pconf, &all_buckets[i].pod))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03277)
"could not open pipe-of-death");
return DONE;
}
NULL, AP_ACCEPT_MUTEX_TYPE,
id, s, pconf, 0))))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03278)
"could not create accept mutex");
return DONE;
}
if ((num_listensocks = ap_setup_listeners(ap_server_conf)) < 1) {
ap_log_error(APLOG_MARK, APLOG_ALERT | level_flags, 0,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03279)
"no listening sockets available, shutting down");
return DONE;
}
if ((rv = ap_duplicate_listeners(pconf, ap_server_conf,
&listen_buckets, &num_buckets))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03280)
"could not duplicate listeners");
return DONE;
}
for (i = 0; i < num_buckets; i++) {
if ((rv = ap_mpm_pod_open(pconf, &all_buckets[i].pod))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03281)
"could not open pipe-of-death");
return DONE;
}
NULL, AP_ACCEPT_MUTEX_TYPE,
id, s, pconf, 0))))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03282)
"could not create accept mutex");
return DONE;
}
ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL, APLOGNO(03131)
" %d servers, decreasing MaxRequestWorkers to %d.",
server_limit, server_limit);
- ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL,
+ ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL, APLOGNO(03283)
" To increase, please see the ServerLimit "
"directive.");
} else {
if (rv) {
if (!APR_STATUS_IS_EINTR(rv) && !APR_STATUS_IS_TIMEUP(rv)) {
- ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL,
+ ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL, APLOGNO(03284)
"simple_main_loop: apr_pollcb_poll failed");
return !OK;
}
rv = apr_pollset_create(&pollset, num_listensocks, tpool,
APR_POLLSET_NOCOPY);
if (rv != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
+ ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf, APLOGNO(03285)
"Couldn't create pollset in thread;"
" check system or user limits");
/* let the parent decide how bad this really is */
rv = apr_pollset_add(pollset, pfd);
if (rv != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
+ ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf, APLOGNO(03286)
"Couldn't create add listener to pollset;"
" check system or user limits");
/* let the parent decide how bad this really is */
break; /* we've been signaled to die now */
}
else if (rv != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
+ ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf, APLOGNO(03287)
"apr_queue_info_wait failed. Attempting to "
" shutdown process gracefully.");
signal_threads(ST_GRACEFUL);
rv = ap_queue_info_set_idle(worker_queue_info, last_ptrans);
last_ptrans = NULL;
if (rv != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
+ ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf, APLOGNO(03288)
"ap_queue_info_set_idle failed. Attempting to "
"shutdown process gracefully.");
signal_threads(ST_GRACEFUL);
++loops;
if (loops % 120 == 0) { /* every couple of minutes */
if (prev_threads_created == threads_created) {
- ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf,
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(03289)
"child %" APR_PID_T_FMT " isn't taking over "
"slots very quickly (%d of %d)",
ap_my_pid, threads_created, threads_per_child);
if ((num_listensocks = ap_setup_listeners(ap_server_conf)) < 1) {
ap_log_error(APLOG_MARK, APLOG_ALERT | level_flags, 0,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03290)
"no listening sockets available, shutting down");
return DONE;
}
if ((rv = ap_duplicate_listeners(pconf, ap_server_conf,
&listen_buckets, &num_buckets))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03291)
"could not duplicate listeners");
return DONE;
}
for (i = 0; i < num_buckets; i++) {
if ((rv = ap_mpm_podx_open(pconf, &all_buckets[i].pod))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03292)
"could not open pipe-of-death");
return DONE;
}
NULL, AP_ACCEPT_MUTEX_TYPE,
id, s, pconf, 0))))) {
ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
- (startup ? NULL : s),
+ (startup ? NULL : s), APLOGNO(03293)
"could not create accept mutex");
return DONE;
}
ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL, APLOGNO(03151)
" would exceed ServerLimit of %d, decreasing to %d.",
server_limit, server_limit * threads_per_child);
- ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL,
+ ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL, APLOGNO(03294)
" To increase, please see the ServerLimit "
"directive.");
} else {
x if (r->finfo.filetype != APR_DIR
x && (res = resolve_symlink(r->filename, r->info, ap_allow_options(r),
x r->pool))) {
- x ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
+ x ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(03295)
x "Symbolic link not allowed: %s", r->filename);
x return res;
x }
*ctx->result_string = ap_expr_eval_word(ctx, ctx->info->root_node);
if (*ctx->err != NULL) {
ap_log_rerror(LOG_MARK(ctx->info), APLOG_ERR, 0, ctx->r,
- "Evaluation of expression from %s:%d failed: %s",
+ APLOGNO(03298)
+ "Evaluation of string expression from %s:%d failed: %s",
ctx->info->filename, ctx->info->line_number, *ctx->err);
return -1;
} else {
rc = ap_expr_eval(ctx, ctx->info->root_node);
if (*ctx->err != NULL) {
ap_log_rerror(LOG_MARK(ctx->info), APLOG_ERR, 0, ctx->r,
+ APLOGNO(03299)
"Evaluation of expression from %s:%d failed: %s",
ctx->info->filename, ctx->info->line_number, *ctx->err);
return -1;
#define YY_FATAL_ERROR(msg) \
do { \
ap_log_error(APLOG_MARK, APLOG_CRIT, 0, ap_server_conf, \
- "expr parser fatal error (BUG?): " \
- "%s, exiting", msg); \
+ APLOGNO(03296) \
+ "expr parser fatal error (BUG?): " \
+ "%s, exiting", msg); \
abort(); \
} while (0)
#define YY_FATAL_ERROR(msg) \
do { \
ap_log_error(APLOG_MARK, APLOG_CRIT, 0, ap_server_conf, \
- "expr parser fatal error (BUG?): " \
- "%s, exiting", msg); \
+ APLOGNO(03296) \
+ "expr parser fatal error (BUG?): " \
+ "%s, exiting", msg); \
abort(); \
} while (0)