log.c updated for copying parent trace to child trace