You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then way down at the end of the method (lines 116-139) there's a larger, completely different block of code for processing LoggingLevelSwitch.
I haven't done anything too complicated with the level switches so I'll leave it to somebody else to figure out if the second block is just old leftover code, or if they need to be combined somehow, etc.
The text was updated successfully, but these errors were encountered:
MV10
changed the title
Bugs relating to use of ConfigurationSection.Value
Opened in error
Apr 17, 2018
MV10
changed the title
Opened in error
Unreachable code in StringArgumentValue
Apr 17, 2018
Ouch, this may be a regression I introduced as part of #88 :-/
I think there was at some point some support for detecting changes to the config file and updating the value of LoggingLevelSwitches , but I'm not sure exactly what the expected behavior was ...
So changes to restrictedToMinimumLevel would result in change in underlying level switch. I think after #88 it is kinda deprecated now though it also introduced some breaking change in behavior. I believe this code should be moved and adapted to level switches declaration section so we can support of IChangedToken notifcations:
tsimbalar
changed the title
Unreachable code in StringArgumentValue
Unreachable code in StringArgumentValue / review support for dynamic config changes
Oct 15, 2018
(Figured I'd re-use this issue thread I opened accidentally... lol)
Anyway, the
ConvertTo
method in theStringArgumentValue
class has unreachable code.At the start of the method (lines 37-40) it converts the argument value when the requested type is
LoggingLevelSwitch
:Then way down at the end of the method (lines 116-139) there's a larger, completely different block of code for processing
LoggingLevelSwitch
.I haven't done anything too complicated with the level switches so I'll leave it to somebody else to figure out if the second block is just old leftover code, or if they need to be combined somehow, etc.
The text was updated successfully, but these errors were encountered: