Update log-file.c

test whether tx_ud is NULL