public void initCurrentTracingContext() {
//    if (this.debugConfigMap.containsKey(Thread.currentThread().getName())) {
//      DebugConfig debugConfig = this.debugConfigMap.get(Thread.currentThread().getName());
//      this.debugConfigMap.remove(Thread.currentThread().getName());
//
//      System.out.println(formatContextInfo(debugConfig.getLevel(), debugConfig.isOnline()));
//
//      TracingContext tracingContext = new TracingContext(debugConfig);
//      this.threadMap.setCurrentTracingContext(tracingContext);
//    }
    
    TracingContext tracingContext = this.threadMap.getCurrentTracingContext();
    if (tracingContext == null) {
      if (this.debugConfigMap.containsKey(Thread.currentThread().getName())) {
        DebugConfig debugConfig = this.debugConfigMap.get(Thread.currentThread().getName());
        System.out.println(formatContextInfo(debugConfig.getLevel(), debugConfig.isOnline()));
        tracingContext = new TracingContext(debugConfig);
        this.threadMap.setCurrentTracingContext(tracingContext);
      }
    }
  }
public void initCurrentTracingContext ( ) { TracingContext tracingContext = this . threadMap . getCurrentTracingContext ( ) ; if ( tracingContext == null ) { if ( this . debugConfigMap . containsKey ( Thread . currentThread ( ) . getName ( ) ) ) { DebugConfig debugConfig = this . debugConfigMap . get ( Thread . currentThread ( ) . getName ( ) ) ; System . out . println ( formatContextInfo ( debugConfig . getLevel ( ) , debugConfig . isOnline ( ) ) ) ; tracingContext = new TracingContext ( debugConfig ) ; this . threadMap . setCurrentTracingContext ( tracingContext ) ; } } }
Initialises the current tracing context by taking the values for debugLevel and online from the configured
debug map.