Added detailed debug logging for CLI command execution and adjusted debug path in SerialPortData.
This commit is contained in:
parent
5ea88265b9
commit
5a1db14e2a
@ -290,6 +290,9 @@ namespace TBF.Rig.RegisterReaders.PoseidonCmdStartStop
|
||||
|
||||
public void AddRunAndCaptureJsonAsync<T>(string fileName, string args) where T : new()
|
||||
{
|
||||
log.Debug($"CLI: {fileName}");
|
||||
log.Debug($"ARGS: {args}");
|
||||
|
||||
ResetStartTime();
|
||||
|
||||
var cts = new CancellationTokenSource();
|
||||
@ -323,6 +326,12 @@ namespace TBF.Rig.RegisterReaders.PoseidonCmdStartStop
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
log.Debug($"FileName = '{psi.FileName}'");
|
||||
log.Debug($"Arguments = '{psi.Arguments}'");
|
||||
log.Debug($"WorkingDirectory = '{psi.WorkingDirectory}'");
|
||||
log.Debug($"Exists = {System.IO.File.Exists(psi.FileName)}");
|
||||
|
||||
process.Start();
|
||||
|
||||
var stdoutTask = process.StandardOutput.ReadToEndAsync();
|
||||
|
||||
@ -20,7 +20,7 @@ namespace TBF.Rig.RegisterReaders.PoseidonCmdStartStop
|
||||
#if DEBUG
|
||||
get { return Path.Combine("C:\\","TBF","Cli", CmdClientName);}
|
||||
#else
|
||||
get { return Path.Combine("..","Cli", CmdClientName);}
|
||||
get { return Path.Combine("C:\\","TBF","Cli", CmdClientName);}
|
||||
#endif
|
||||
}
|
||||
public string CmdClientName { get; set; } = "HalCli.exe";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user