logo       
Google Custom Search
    AddThis Social Bookmark Button

[mp2] one more issue with tracing on win32: msg#00245

Subject: [mp2] one more issue with tracing on win32
I've noticed from your reports that the tracing has more problems: it doesn't report the function name. e.g. on linux I get:

mpxs_Apache__Filter_print: TestFilter::in_str_consume::handler::print

modperl_input_filter_write:    TestFilter::in_str_consume::handler

        write out: 105 bytes:

on win32 you get:

 TestFilter::in_str_consume::handler::print

 TestFilter::in_str_consume::handler

        write out: 105 bytes:

notice the missing 'function:' stamp. The logging functions are called as:

    MP_TRACE_i(MP_FUNC, format, ...)

but it seems to be NULL on non-gnu systems. from modperl_log.h:

#ifdef MP_TRACE
#   if defined(__GNUC__)
#      if (__GNUC__ > 2)
#         define MP_FUNC __func__
#      else
#         define MP_FUNC __FUNCTION__
#      endif
#   else
#      define MP_FUNC NULL
#   endif
#else
#   define MP_FUNC NULL
#endif

there is no way to get the name of the currently executed function on win32?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>