File tree Expand file tree Collapse file tree 4 files changed +2
-42
lines changed
Test Harness/NRTestApp/NRTestApp/ViewModels Expand file tree Collapse file tree 4 files changed +2
-42
lines changed Original file line number Diff line number Diff line change @@ -465,9 +465,6 @@ - (void) onSessionStart {
465
465
uuid);
466
466
self->_agentConfiguration .sessionIdentifier = uuid_String;
467
467
468
- // TODO: Remove Logging Debugging Logging
469
- NRLOG_VERBOSE (@" Set new sessionId = %@ " ,uuid_String);
470
-
471
468
CFRelease (uuid);
472
469
if (self->_agentConfiguration .sessionIdentifier .length > 0 ) {
473
470
NRMA_setSessionId ([self ->_agentConfiguration.sessionIdentifier UTF8String ]);
Original file line number Diff line number Diff line change @@ -149,13 +149,6 @@ - (BOOL) isEqual:(id)object {
149
149
if (self.application_id != that.application_id ) return NO ;
150
150
if (![self .encoding_key isEqualToString: that.encoding_key]) return NO ;
151
151
152
- // Should trusted_account_key be considered in Equality
153
-
154
- // Should entity_guid be considered in Equality?
155
-
156
- // Should log_reporting be considered in Equality?
157
-
158
-
159
152
// [ <account id> , <app id> ];
160
153
return [self .data_token isEqual: that.data_token];
161
154
}
@@ -179,12 +172,6 @@ - (NSUInteger) hash
179
172
result = 31 * result + (unsigned int )self.application_id ;
180
173
result = 31 * result + self.encoding_key .hash ;
181
174
182
- // Should trusted_account_key be considered in Hash?
183
-
184
- // Should entity_guid be considered in Hash?
185
-
186
- // Should log_reporting be considered in Hash?
187
-
188
175
return result;
189
176
}
190
177
@end
Original file line number Diff line number Diff line change @@ -333,10 +333,10 @@ - (void) connected
333
333
[self transition: NRMA_HARVEST_DISCONNECTED];
334
334
// Reconnect performed here.
335
335
[self execute ];
336
-
337
- // TODO: Is this the right place to send the configuration update Spt Metric?
336
+
338
337
// Send Supportability metric when received 409 to indicate that a config update should happen or send it when actual /connect call finishes which refreshes the data.
339
338
[NRMASupportMetricHelper enqueueConfigurationUpdateMetric ];
339
+
340
340
break ;
341
341
default :
342
342
break ;
Original file line number Diff line number Diff line change @@ -43,10 +43,6 @@ class UtilViewModel {
43
43
options. append ( UtilOption ( title: " Notice Network Request " , handler: { [ self ] in noticeNWRequest ( ) } ) )
44
44
options. append ( UtilOption ( title: " Notice Network Failure " , handler: { [ self ] in noticeFailedNWRequest ( ) } ) )
45
45
46
- options. append ( UtilOption ( title: " Notice Network Failure W Single Quotes " , handler: { [ self ] in noticeFailedNWRequestWSingleQuotes ( ) } ) )
47
-
48
-
49
- options. append ( UtilOption ( title: " Toggle Remote Logging On/Off " , handler: { [ self ] in toggleRemoteLogging ( ) } ) )
50
46
options. append ( UtilOption ( title: " Test Log Dict " , handler: { [ self ] in testLogDict ( ) } ) )
51
47
52
48
options. append ( UtilOption ( title: " URLSession dataTask " , handler: { [ self ] in doDataTask ( ) } ) )
@@ -133,26 +129,6 @@ class UtilViewModel {
133
129
with: NRTimer ( ) , andFailureCode: NSURLErrorTimedOut)
134
130
}
135
131
136
- func noticeFailedNWRequestWSingleQuotes( ) {
137
- NewRelic . noticeNetworkFailure ( for: URL ( string: " http://test.com/test('test') " ) , httpMethod: " GET " ,
138
- with: NRTimer ( ) , andFailureCode: NSURLErrorTimedOut)
139
- }
140
-
141
- var logEnabled = false
142
-
143
- // testing only: this won't work once server supports settings this.
144
- // Does not sync initial state.
145
- func toggleRemoteLogging( ) {
146
- if !logEnabled {
147
- NewRelic . enableFeatures ( [ NRMAFeatureFlags . NRFeatureFlag_LogReporting] )
148
- logEnabled = true
149
- }
150
- else {
151
- NewRelic . disableFeatures ( [ NRMAFeatureFlags . NRFeatureFlag_LogReporting] )
152
- logEnabled = false
153
- }
154
- }
155
-
156
132
func testLogDict( ) {
157
133
NewRelic . logAll ( [
158
134
" logLevel " : " WARNING " ,
You can’t perform that action at this time.
0 commit comments