@@ -263,20 +263,28 @@ class AppDelegate: NSObject, NSApplicationDelegate {
263
263
nudgePrimaryState. activelyExploitedCVEs = activelyExploitedCVEs
264
264
switch ( activelyExploitedCVEs, presentCVEs, AppStateManager ( ) . requireMajorUpgrade ( ) ) {
265
265
case ( false , true , true ) :
266
+ LogManager . notice ( " Non Actively Exploited Major Upgrade detected. Using nonActivelyExploitedCVEsMajorUpgradeSLA value: \( OSVersionRequirementVariables . nonActivelyExploitedCVEsMajorUpgradeSLA) " , logger: sofaLog)
266
267
slaExtension = TimeInterval ( OSVersionRequirementVariables . nonActivelyExploitedCVEsMajorUpgradeSLA * 86400 )
267
268
case ( false , true , false ) :
269
+ LogManager . notice ( " Non Actively Exploited Minor Update detected. Using nonActivelyExploitedCVEsMinorUpdateSLA value: \( OSVersionRequirementVariables . nonActivelyExploitedCVEsMinorUpdateSLA) " , logger: sofaLog)
268
270
slaExtension = TimeInterval ( OSVersionRequirementVariables . nonActivelyExploitedCVEsMinorUpdateSLA * 86400 )
269
271
case ( true , false , true ) : // The selected major upgrade does not have CVEs, but the old OS does
272
+ LogManager . notice ( " Actively Exploited Major Upgrade detected. Using activelyExploitedCVEsMajorUpgradeSLA value: \( OSVersionRequirementVariables . activelyExploitedCVEsMajorUpgradeSLA) " , logger: sofaLog)
270
273
slaExtension = TimeInterval ( OSVersionRequirementVariables . activelyExploitedCVEsMajorUpgradeSLA * 86400 )
271
274
case ( true , true , true ) :
275
+ LogManager . notice ( " Actively Exploited Major Upgrade detected. Using activelyExploitedCVEsMajorUpgradeSLA value: \( OSVersionRequirementVariables . activelyExploitedCVEsMajorUpgradeSLA) " , logger: sofaLog)
272
276
slaExtension = TimeInterval ( OSVersionRequirementVariables . activelyExploitedCVEsMajorUpgradeSLA * 86400 )
273
277
case ( true , false , false ) :
278
+ LogManager . notice ( " Actively Exploited Minor Update detected. Using activelyExploitedCVEsMinorUpdateSLA value: \( OSVersionRequirementVariables . activelyExploitedCVEsMinorUpdateSLA) " , logger: sofaLog)
274
279
slaExtension = TimeInterval ( OSVersionRequirementVariables . activelyExploitedCVEsMinorUpdateSLA * 86400 )
275
280
case ( true , true , false ) :
281
+ LogManager . notice ( " Actively Exploited Minor Update detected. Using activelyExploitedCVEsMinorUpdateSLA value: \( OSVersionRequirementVariables . activelyExploitedCVEsMinorUpdateSLA) " , logger: sofaLog)
276
282
slaExtension = TimeInterval ( OSVersionRequirementVariables . activelyExploitedCVEsMinorUpdateSLA * 86400 )
277
283
case ( false , false , true ) :
284
+ LogManager . notice ( " Standard Major Upgrade detected. Using standardMajorUpgradeSLA value: \( OSVersionRequirementVariables . standardMajorUpgradeSLA) " , logger: sofaLog)
278
285
slaExtension = TimeInterval ( OSVersionRequirementVariables . standardMajorUpgradeSLA * 86400 )
279
286
case ( false , false , false ) :
287
+ LogManager . notice ( " Standard Minor Update detected. Using standardMinorUpdateSLA value: \( OSVersionRequirementVariables . standardMinorUpdateSLA) " , logger: sofaLog)
280
288
slaExtension = TimeInterval ( OSVersionRequirementVariables . standardMinorUpdateSLA * 86400 )
281
289
default : // If we get here, something is wrong, use 90 days as a safety
282
290
LogManager . warning ( " SLA Extension logic failed, using 90 days as a safety " , logger: sofaLog)
0 commit comments