Top Constructors Methods
liquibase.util

public Class LogUtil

extends Object
Class Inheritance
Imports
liquibase.Scope, liquibase.logging.mdc.MdcKey

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
setPersistedMdcKeysToEmptyString()

In LiquibaseCommandLine#addEmptyMdcValues(), baseline values are added to the MDC with empty strings.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LogUtilback to summary
public LogUtil()

Method Detail

setPersistedMdcKeysToEmptyStringback to summary
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.