Class LogUtil


  • public class LogUtil
    extends Object
    • Constructor Detail

      • LogUtil

        public LogUtil()
    • Method Detail

      • setPersistedMdcKeysToEmptyString

        public static void setPersistedMdcKeysToEmptyString()
        In LiquibaseCommandLine#addEmptyMdcValues(), baseline values are added to the MDC with empty strings. It is desired that MdcKey.CHANGESET_ID, MdcKey.CHANGESET_AUTHOR and MdcKey.LIQUIBASE_SYSTEM_USER are not ever cleared from the scope, except when the command finishes executing (or they are replaced with a new value). When the command finishes executing, these keys must be set back to an empty string so that incorrect values do not persist outside of command execution (like would occur during flow). MdcKey.LIQUIBASE_SYSTEM_USER is purposefully excluded from this method because it does not need to be reset when command execution finishes because it should be constant throughout the entire Liquibase execution.