@@ -33,7 +33,6 @@ public class ProxyEngine(IProxyConfiguration config, ISet<UrlToWatch> urlsToWatc
3333 // lists of hosts to watch extracted from urlsToWatch,
3434 // used for deciding which URLs to decrypt for further inspection
3535 private readonly ISet < UrlToWatch > _hostsToWatch = new HashSet < UrlToWatch > ( ) ;
36- private static readonly object consoleLock = new ( ) ;
3736 private readonly IProxyState _proxyState = proxyState ?? throw new ArgumentNullException ( nameof ( proxyState ) ) ;
3837 // Dictionary for plugins to store data between requests
3938 // the key is HashObject of the SessionEventArgs object
@@ -257,7 +256,6 @@ private void StartRecording()
257256 }
258257
259258 _proxyState . StartRecording ( ) ;
260- PrintRecordingIndicator ( _proxyState . IsRecording ) ;
261259 }
262260
263261 private async Task StopRecordingAsync ( )
@@ -267,28 +265,9 @@ private async Task StopRecordingAsync()
267265 return ;
268266 }
269267
270- PrintRecordingIndicator ( false ) ;
271268 await _proxyState . StopRecordingAsync ( ) ;
272269 }
273270
274- private static void PrintRecordingIndicator ( bool isRecording )
275- {
276- lock ( consoleLock )
277- {
278- if ( isRecording )
279- {
280- Console . ForegroundColor = ConsoleColor . Red ;
281- Console . Error . Write ( "◉" ) ;
282- Console . ResetColor ( ) ;
283- Console . Error . WriteLine ( " Recording... " ) ;
284- }
285- else
286- {
287- Console . Error . WriteLine ( "○ Stopped recording" ) ;
288- }
289- }
290- }
291-
292271 // Convert strings from config to regexes.
293272 // From the list of URLs, extract host names and convert them to regexes.
294273 // We need this because before we decrypt a request, we only have access
0 commit comments