From b7f1dc37a15a354ef7fae439bbcedf1f2133189c Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 13 Aug 2021 18:19:12 +0300 Subject: Added logging for tracing PPC start/stop app buttons behavior. --- .../Tango.Integration/Operation/MachineOperator.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Software/Visual_Studio/Tango.Integration') diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index a1d370109..e15a5a0bd 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -1270,6 +1270,8 @@ namespace Tango.Integration.Operation /// The job. protected virtual void OnPrintingStarted(JobHandler handler, Job job, bool isResumed = false) { + LogManager.Log("Raising printing started event..."); + PrintingStarted?.Invoke(this, new PrintingEventArgs(handler, job) { StartDate = _jobStartDate, @@ -1284,6 +1286,8 @@ namespace Tango.Integration.Operation /// The job. protected virtual void OnPrintingCompleted(JobHandler handler, Job job) { + LogManager.Log("Raising printing completed event..."); + PrintingCompleted?.Invoke(this, new PrintingEventArgs(handler, job) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), @@ -1304,6 +1308,8 @@ namespace Tango.Integration.Operation /// The exception. protected virtual void OnPrintingFailed(JobHandler handler, Job job, Exception exception) { + LogManager.Log("Raising printing failed event..."); + PrintingFailed?.Invoke(this, new PrintingFailedEventArgs(handler, job, exception) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), @@ -1322,6 +1328,8 @@ namespace Tango.Integration.Operation /// The job. protected virtual void OnPrintingAborted(JobHandler handler, Job job) { + LogManager.Log("Raising printing aborted event..."); + PrintingAborted?.Invoke(this, new PrintingEventArgs(handler, job) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), @@ -1340,6 +1348,8 @@ namespace Tango.Integration.Operation /// The job. protected virtual void OnPrintingEnded(JobHandler handler, Job job) { + LogManager.Log("Raising printing ended event..."); + PrintingEnded?.Invoke(this, new PrintingEventArgs(handler, job) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), -- cgit v1.3.1