Fix logging when g_thrid duplicate is encountered.