File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Src/StackifyLib/Internal/Logs Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -186,14 +186,12 @@ public void QueueLogMessage(Models.LogMsg msg)
186186 // get RequestID
187187 if ( string . IsNullOrEmpty ( msg . TransID ) )
188188 {
189- var trace = Trace . CorrelationManager . ActivityId ;
189+ var assemblies = AppDomain . CurrentDomain . GetAssemblies ( ) ;
190190
191- var q = AppDomain . CurrentDomain . GetAssemblies ( ) ;
192-
193- var s = q . Where ( assembly => assembly . FullName . Contains ( "Stackify.Agent" ) ) ;
194- if ( s . Count ( ) > 0 )
191+ var agentAssemblyQry = assemblies . Where ( assembly => assembly . FullName . Contains ( "Stackify.Agent" ) ) ;
192+ if ( agentAssemblyQry . Count ( ) > 0 )
195193 {
196- var middleware = s . First ( ) ;
194+ var middleware = agentAssemblyQry . First ( ) ;
197195 var callContextType = middleware . GetType ( "Stackify.Agent.Threading.StackifyCallContext" ) ;
198196 if ( callContextType != null )
199197 {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments