Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f3bc3c

Browse files
dune73Felipe Zimmerle
authored and
Felipe Zimmerle
committed
Introduced ap_log_rerror declaration to standalone/server.c
1 parent76dfc1a commit8f3bc3c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎standalone/server.c‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,31 @@ AP_DECLARE(void) ap_log_error_(const char *file, int line, int module_index,
285285
modsecLogHook(modsecLogObj,level,errstr);
286286
}
287287

288+
#ifAP_SERVER_MAJORVERSION_NUMBER>1&&AP_SERVER_MINORVERSION_NUMBER<3
289+
AP_DECLARE(void)ap_log_rerror(constchar*file,intline,intlevel,
290+
apr_status_tstatus,constrequest_rec*r,
291+
constchar*fmt, ...)
292+
// __attribute__((format(printf,6,7)))
293+
#else
294+
AP_DECLARE(void)ap_log_rerror_(constchar*file,intline,intmodule_index,
295+
intlevel,apr_status_tstatus,
296+
constrequest_rec*r,constchar*fmt, ...)
297+
// __attribute__((format(printf,7,8)))
298+
#endif
299+
{
300+
va_listargs;
301+
charerrstr[MAX_STRING_LEN];
302+
303+
va_start(args,fmt);
304+
305+
apr_vsnprintf(errstr,MAX_STRING_LEN,fmt,args);
306+
307+
va_end(args);
308+
309+
if(modsecLogHook!=NULL)
310+
modsecLogHook(modsecLogObj,level,errstr);
311+
}
312+
288313
#ifAP_SERVER_MAJORVERSION_NUMBER>1&&AP_SERVER_MINORVERSION_NUMBER<3
289314
AP_DECLARE(void)ap_log_perror(constchar*file,intline,intlevel,
290315
apr_status_tstatus,apr_pool_t*p,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp