Skip to content

Commit

Permalink
Merge pull request #671 from navikt/fixMultipleLogs
Browse files Browse the repository at this point in the history
Fix logging not clearing bus
  • Loading branch information
EirikFladby authored Oct 29, 2024
2 parents 1145151 + 2025369 commit 5c6810b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ public with sharing class nksJournalFeilregistrertQueueable implements Queueable
}
}
update scope;
logger.publish();
if (!Test.isRunningTest() && position < locator.getNumRecords()) {
System.enqueueJob(this);
} else {
logger.info('Done with nksJournalFeilregistrertQueueable', null, CRM_ApplicationDomain.Domain.NKS);
logger.publish();
}
logger.publish();
}
}

0 comments on commit 5c6810b

Please sign in to comment.