You know the default tracing already does this? So get rid of this tracing code.