Only log trace if it is present