Skip to content

Commit 49c8af6

Browse files
[improve] nullable app logs (neo-project#4008)
* nullable app logs * Update src/Plugins/ApplicationLogs/LogReader.cs Co-authored-by: Christopher Schuchardt <[email protected]> * Apply suggestions from code review Co-authored-by: Christopher Schuchardt <[email protected]> * Update src/Plugins/ApplicationLogs/Settings.cs Co-authored-by: Christopher Schuchardt <[email protected]> --------- Co-authored-by: Christopher Schuchardt <[email protected]>
1 parent 019af02 commit 49c8af6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Plugins/ApplicationLogs/Settings.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,27 @@
1313

1414
namespace Neo.Plugins.ApplicationLogs
1515
{
16-
internal class ApplicationLogsSettings : IPluginSettings
16+
internal class Settings : PluginSettings
1717
{
1818
public string Path { get; }
1919
public uint Network { get; }
2020
public int MaxStackSize { get; }
2121

2222
public bool Debug { get; }
2323

24-
public static ApplicationLogsSettings Default { get; private set; } = default!;
24+
public static Settings Default { get; private set; } = default!;
2525

26-
public UnhandledExceptionPolicy ExceptionPolicy { get; }
27-
28-
private ApplicationLogsSettings(IConfigurationSection section)
26+
private Settings(IConfigurationSection section) : base(section)
2927
{
3028
Path = section.GetValue("Path", "ApplicationLogs_{0}");
3129
Network = section.GetValue("Network", 5195086u);
3230
MaxStackSize = section.GetValue("MaxStackSize", (int)ushort.MaxValue);
3331
Debug = section.GetValue("Debug", false);
34-
ExceptionPolicy = section.GetValue("UnhandledExceptionPolicy", UnhandledExceptionPolicy.Ignore);
3532
}
3633

3734
public static void Load(IConfigurationSection section)
3835
{
39-
Default = new ApplicationLogsSettings(section);
36+
Default = new Settings(section);
4037
}
4138
}
4239
}

0 commit comments

Comments
 (0)