HHH-10439 Log a message while executing the import script(s)

This commit is contained in:
Jaikiran 2015-12-25 11:12:47 +05:30 committed by Sanne Grinovero
parent 3aef8de87d
commit 536b814dc8
2 changed files with 6 additions and 0 deletions

View File

@ -1729,4 +1729,9 @@ public interface CoreMessageLogger extends BasicLogger {
@LogMessage(level = INFO) @LogMessage(level = INFO)
@Message(value = "Cannot locate column information using identifier [%s]; ignoring index [%s]", id = 475 ) @Message(value = "Cannot locate column information using identifier [%s]; ignoring index [%s]", id = 475 )
void logCannotLocateIndexColumnInformation(String columnIdentifierText, String indexIdentifierText); void logCannotLocateIndexColumnInformation(String columnIdentifierText, String indexIdentifierText);
@LogMessage(level = INFO)
@Message(value = "Executing import script '%s'", id = 476)
void executingImportScript(String scriptName);
} }

View File

@ -433,6 +433,7 @@ public class SchemaExport {
perform( createSQL, exporters ); perform( createSQL, exporters );
if ( !importFileReaders.isEmpty() ) { if ( !importFileReaders.isEmpty() ) {
for ( NamedReader namedReader : importFileReaders ) { for ( NamedReader namedReader : importFileReaders ) {
LOG.executingImportScript( namedReader.getName() );
importScript( namedReader, exporters ); importScript( namedReader, exporters );
} }
} }