ywkaras commented on pull request #8179:
URL: https://github.com/apache/trafficserver/pull/8179#issuecomment-891423344


   When pigs fly, and https://github.com/apache/trafficserver/pull/7674 gets 
merged, seems like it might combine nicely with this, to allow use in 
production:
   ```
   DbgCtl event_problem_xyz_dbg_ctl("event.problem.xyz");
   ...
   if (is_dbg_ctl_enabled(event_problem_xyz_dbg_ctl)) {
     e->set_location();
   }
   e->scheule_imm(cont, EVENT_XYZ, nullptr);
   ...
   DbgCtl event_problem_xyz_abc_dbg_ctl("event.problem.xyz.abc");
   ...
   case EVENT_XYZ:
     ...
     if (bad_thing_abc_happened && 
is_dbg_cntl_enabled(event_problem_xyz_abc_dbg_ctl)) {
       DbgPrint(event_problem_xyz_abc_dbg_ctl, "Oh my ABC happened!!!");
       auto loc = e->get_location();
       // DbgPrint() calls to output location.
       ...
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to