Skip to content

Commit

Permalink
#923: corrected dataExtensionField rename log message
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 24, 2023
1 parent 8fafdd7 commit bc33a05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/metadataTypes/DataExtensionField.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ class DataExtensionField extends MetadataType {

// enable renaming
if (item.Name_new) {
Util.logger.info(
` - Found Name_new='${item.Name_new}' for field ${deKey}.${item.Name} - trying to rename.`
);
item.Name = item.Name_new;
delete item.Name_new;
Util.logger.warn(
` - Found 'Name_new' value '${item.Name_new}' for ${deKey}.${item.Name} - trying to rename.`
);
}

// check if any changes were found
Expand Down Expand Up @@ -210,8 +210,8 @@ class DataExtensionField extends MetadataType {
}
}
if (item.Name_new) {
Util.logger.warn(
` - Found 'Name_new' value '${item.Name_new}' for ${deKey}.${item.Name} but could not find a corresponding DE field on the server - adding new field instead of updating.`
Util.logger.info(
` - Found Name_new='${item.Name_new}' for field ${deKey}.${item.Name} but could not find a corresponding DE field on the server - adding new field instead of updating.`
);
delete item.Name_new;
}
Expand Down

0 comments on commit bc33a05

Please sign in to comment.