When I started to read that I thought "ouch". But then I realized it was a debugging method.
So it's fine in this case. Just remember that writing things in an over-programmatic way can be far less readable than just having duplicates on a few lines.