mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Register command statistics earlier.
This commit is contained in:
@@ -85,6 +85,7 @@ namespace DiscImageChef.Commands
|
||||
MainClass.PrintCopyright();
|
||||
if(MainClass.Debug) DicConsole.DebugWriteLineEvent += System.Console.Error.WriteLine;
|
||||
if(MainClass.Verbose) DicConsole.VerboseWriteLineEvent += System.Console.WriteLine;
|
||||
Statistics.AddCommand("device-report");
|
||||
|
||||
if(extra.Count > 1)
|
||||
{
|
||||
@@ -977,8 +978,6 @@ namespace DiscImageChef.Commands
|
||||
jsonSw.Close();
|
||||
jsonFs.Close();
|
||||
|
||||
Statistics.AddCommand("device-report");
|
||||
|
||||
using(DicContext ctx = DicContext.Create(Settings.Settings.LocalDbPath))
|
||||
{
|
||||
ctx.Reports.Add(new Report(report));
|
||||
|
||||
Reference in New Issue
Block a user