Skip to content

Commit 42a060a

Browse files
committed
Fix parameter name
1 parent fa04bc8 commit 42a060a

File tree

1 file changed

+2
-2
lines changed
  • agent/src/main/java/com/microsoft/applicationinsights/agent/internal/config/builder

1 file changed

+2
-2
lines changed

agent/src/main/java/com/microsoft/applicationinsights/agent/internal/config/builder/XmlParserUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static Element getFirst(NodeList nodes) {
4545
return (Element) node;
4646
}
4747

48-
public static boolean getEnabled(Element element, String attributeName) {
48+
public static boolean getEnabled(Element element, String elementName) {
4949
if (element == null) {
5050
return true;
5151
}
@@ -57,7 +57,7 @@ public static boolean getEnabled(Element element, String attributeName) {
5757
return true;
5858
} catch (Exception e) {
5959
logger.error("Failed to parse attribute '{}' of '{}', default value ({}) will be used.", ENABLED_ATTRIBUTE,
60-
attributeName, true);
60+
elementName, true);
6161
}
6262
return true;
6363
}

0 commit comments

Comments
 (0)