Only use traces in debug mode