Skip to content

Commit

Permalink
improve: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasHeine committed Nov 28, 2024
1 parent a20341c commit b4bdcc4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/machines/MyControledMachine/jobcontrol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const createJobContolLogic = async (addressSpace: AddressSpace): Promise<
function emitISA95JobOrderStatusEvent(JobOrderId: string): void {
if (JobOrderMap.has(JobOrderId) === false) return
const job = JobOrderMap.get(JobOrderId)
// check if job is finished!
green(`JobOrderControl(MyControledMachine): raise ISA95JobOrderStatusEvent for JobOrderId='${JobOrderId}' JobState='${job!.state}'`)
JobOrderResults.raiseEvent(
MyControledMachineJobOrderResultStatusEventType,
{
Expand Down Expand Up @@ -374,7 +374,6 @@ export const createJobContolLogic = async (addressSpace: AddressSpace): Promise<
setInterval(() => {
const jobs = getJobList()
jobs.forEach((job) => {

switch (job.state) {
case JobState.AllowedToStart:
job.start()
Expand Down Expand Up @@ -873,8 +872,6 @@ export const createJobContolLogic = async (addressSpace: AddressSpace): Promise<

const job = JobOrderMap.get(JobOrderId)

console.log(job)

callback(null, {
// statusCode?: StatusCode;
statusCode: StatusCodes.Good,
Expand Down

0 comments on commit b4bdcc4

Please sign in to comment.