Package liquibase.util
Class LogUtil
java.lang.Object
liquibase.util.LogUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
InLiquibaseCommandLine#addEmptyMdcValues()
, baseline values are added to the MDC with empty strings.
-
Constructor Details
-
LogUtil
public LogUtil()
-
-
Method Details
-
setPersistedMdcKeysToEmptyString
public static void setPersistedMdcKeysToEmptyString()InLiquibaseCommandLine#addEmptyMdcValues()
, baseline values are added to the MDC with empty strings. It is desired thatMdcKey.CHANGESET_ID
,MdcKey.CHANGESET_AUTHOR
andMdcKey.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.
-