Add More Verbosity and 0.1 Release
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<RootNamespace>Cachet_Monitor</RootNamespace>
|
||||
<AssemblyVersion>2020.3.4.0</AssemblyVersion>
|
||||
<FileVersion>2020.3.4.0</FileVersion>
|
||||
<AssemblyVersion>0.1.0.0</AssemblyVersion>
|
||||
<FileVersion>0.1.0.0</FileVersion>
|
||||
<Version>0.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -58,12 +58,14 @@ namespace Cachet_Monitor
|
||||
try
|
||||
{
|
||||
await DoMonitorCheck(Cachet, monitor).ConfigureAwait(false);
|
||||
Log.Verbose("MainAsync", $"Ran Monitor Check for {monitor.Name}");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
File.WriteAllText(Path.Combine(Environment.CurrentDirectory, "lastexception.txt"), ex.ToString());
|
||||
Log.Warning("MainAsync", $"{monitor.Name} failed with {ex.Message}", ex);
|
||||
}
|
||||
|
||||
Log.Verbose("MainAsync", $"Halting {monitor.Name} check for {monitor.Interval * 1000}ms");
|
||||
await Task.Delay(monitor.Interval * 1000);
|
||||
}
|
||||
}).Start();
|
||||
|
||||
Reference in New Issue
Block a user