update use of logFlags.