TS-3969 Fixes Debug() output to use the right event check
TS-3969 Fixes Debug() output to use the right event check

I also added some curly brackets to make the code less
error prone, and easier to read.

rpufky/trafficserver,persiaAziz/trafficserver,chitianhao/trafficserver,rahmalik/trafficserver,duke8253/trafficserver,rpufky/trafficserver,chitianhao/trafficserver,reveller/trafficserver,bryancall/trafficserver,pbchou/trafficserver,taoyunxing/trafficserver,SolidWallOfCode/trafficserver,vmamidi/trafficserver,SolidWallOfCode/trafficserver,reveller/trafficserver,pbchou/trafficserver,clearswift/trafficserver,davidbz/trafficserver,taoyunxing/trafficserver,rahmalik/trafficserver,duke8253/trafficserver,SolidWallOfCode/trafficserver,pbchou/trafficserver,reveller/trafficserver,reveller/trafficserver,pbchou/trafficserver,davidbz/trafficserver,reveller/trafficserver,persiaAziz/trafficserver,chitianhao/trafficserver,chitianhao/trafficserver,reveller/trafficserver,bryancall/trafficserver,rahmalik/trafficserver,PSUdaemon/trafficserver,vmamidi/trafficserver,bryancall/trafficserver,duke8253/trafficserver,vmamidi/trafficserver,duke8253/trafficserver,persiaAziz/trafficserver,clearswift/trafficserver,chenglongwei/trafficserver,chitianhao/trafficserver,pbchou/trafficserver,PSUdaemon/trafficserver,persiaAziz/trafficserver,dyrock/trafficserver,davidbz/trafficserver,SolidWallOfCode/trafficserver,dyrock/trafficserver,PSUdaemon/trafficserver,rahmalik/trafficserver,clearswift/trafficserver,chenglongwei/trafficserver,davidbz/trafficserver,clearswift/trafficserver,PSUdaemon/trafficserver,rpufky/trafficserver,chenglongwei/trafficserver,vmamidi/trafficserver,SolidWallOfCode/trafficserver,bryancall/trafficserver,dyrock/trafficserver,taoyunxing/trafficserver,rpufky/trafficserver,vmamidi/trafficserver,clearswift/trafficserver,chenglongwei/trafficserver,taoyunxing/trafficserver,clearswift/trafficserver,taoyunxing/trafficserver,rahmalik/trafficserver,rahmalik/trafficserver,rpufky/trafficserver,chitianhao/trafficserver,persiaAziz/trafficserver,taoyunxing/trafficserver,reveller/trafficserver,rpufky/trafficserver,rahmalik/trafficserver,PSUdaemon/trafficserver,PSUdaemon/trafficserver,rpufky/trafficserver,davidbz/trafficserver,duke8253/trafficserver,rahmalik/trafficserver,SolidWallOfCode/trafficserver,bryancall/trafficserver,rpufky/trafficserver,PSUdaemon/trafficserver,clearswift/trafficserver,taoyunxing/trafficserver,duke8253/trafficserver,chenglongwei/trafficserver,chenglongwei/trafficserver,chitianhao/trafficserver,PSUdaemon/trafficserver,reveller/trafficserver,SolidWallOfCode/trafficserver,bryancall/trafficserver,clearswift/trafficserver,taoyunxing/trafficserver,dyrock/trafficserver,persiaAziz/trafficserver,vmamidi/trafficserver,duke8253/trafficserver,chenglongwei/trafficserver,pbchou/trafficserver,persiaAziz/trafficserver,rpufky/trafficserver,dyrock/trafficserver,PSUdaemon/trafficserver,dyrock/trafficserver,dyrock/trafficserver,persiaAziz/trafficserver,reveller/trafficserver,davidbz/trafficserver,rahmalik/trafficserver,chenglongwei/trafficserver,clearswift/trafficserver,taoyunxing/trafficserver