setup the flag after log is inited