add log for trace