logging fix for trace