File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
libraries/src/AWS.Lambda.Powertools.Logging/Internal Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ internal class LoggingAspectHandler : IMethodAspectHandler
35
35
/// <summary>
36
36
/// The is cold start
37
37
/// </summary>
38
- private bool _isColdStart = true ;
38
+ private static bool _isColdStart = true ;
39
39
40
40
/// <summary>
41
41
/// The initialize context
42
42
/// </summary>
43
- private bool _initializeContext = true ;
43
+ private static bool _initializeContext = true ;
44
44
45
45
/// <summary>
46
46
/// Clear state?
@@ -388,6 +388,8 @@ private void LogEvent(object eventArg)
388
388
/// </summary>
389
389
internal static void ResetForTest ( )
390
390
{
391
+ _isColdStart = true ;
392
+ _initializeContext = true ;
391
393
PowertoolsLambdaContext . Clear ( ) ;
392
394
Logger . LoggerProvider = null ;
393
395
Logger . RemoveAllKeys ( ) ;
You can’t perform that action at this time.
0 commit comments