mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added extra logging to 7z extraction completion
This commit is contained in:
parent
fb0bfe8e60
commit
a7aaac425a
@ -204,9 +204,15 @@ namespace Wabbajack.Common
|
||||
{
|
||||
}
|
||||
|
||||
p.WaitForExit();
|
||||
if (!p.WaitForExit(30000))
|
||||
{
|
||||
Utils.Status($"Extracting {name} - Taking a long time to exit.", alsoLog: true);
|
||||
p.WaitForExit();
|
||||
}
|
||||
|
||||
if (p.ExitCode == 0)
|
||||
{
|
||||
Utils.Log(new GenericInfo($"Extracted {Path.GetFileName(source)}"));
|
||||
return;
|
||||
}
|
||||
Utils.Log(new _7zipReturnError(p.ExitCode, source, dest, p.StandardOutput.ReadToEnd()));
|
||||
|
@ -121,9 +121,13 @@ namespace Wabbajack.Common
|
||||
}
|
||||
}
|
||||
|
||||
public static void Status(string msg, int progress = 0)
|
||||
public static void Status(string msg, int progress = 0, bool alsoLog = false)
|
||||
{
|
||||
WorkQueue.AsyncLocalCurrentQueue.Value?.Report(msg, progress);
|
||||
if (alsoLog)
|
||||
{
|
||||
Utils.Log(msg);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user