You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debugMessage=string.Format("Provided numeric value {0} is in an invalid format.",eventTags[VALUE_EVENT_METRIC_NAME]);
110
+
{
111
+
logMessage=string.Format("Provided numeric value {0} is in an invalid format.",eventTags[VALUE_EVENT_METRIC_NAME]);
112
+
logLevel=LogLevel.ERROR;
113
+
}
98
114
else
99
115
{
100
116
if(float.IsInfinity(refVar))
101
-
debugMessage=string.Format("Provided numeric value {0} is in an invalid format.",eventTags[VALUE_EVENT_METRIC_NAME]);
117
+
{
118
+
logMessage=string.Format("Provided numeric value {0} is in an invalid format.",eventTags[VALUE_EVENT_METRIC_NAME]);
119
+
logLevel=LogLevel.ERROR;
120
+
}
102
121
else
122
+
{
103
123
isCasted=true;
124
+
logMessage=string.Format("The numeric metric value {0} will be sent to results.",refVar);
125
+
}
104
126
}
105
127
}
106
128
107
129
if(logger!=null)
108
-
{
109
-
if(isCasted)
110
-
logger.Log(LogLevel.INFO,string.Format("The numeric metric value {0} will be sent to results.",refVar));
111
-
else
112
-
if(string.IsNullOrEmpty(debugMessage))
113
-
logger.Log(LogLevel.ERROR,string.Format("The provided numeric metric value {0} is in an invalid format and will not be sent to results.",eventTags[VALUE_EVENT_METRIC_NAME]));
0 commit comments