This topic contains 0 replies, has 1 voice, and was last updated by  Jeff Drumm 11 months, 2 weeks ago.

Avoiding Spurious Log Errors During Resubmission

  • In the latest versions of Iguana, the resubmission feature for a message queue entry processed by a translator will actually execute the translator’s code while it’s in the resubmission editor. Fortunately, this execution environment is very similar to the Translator Editor, in that database operations that accept a a “live=” argument will not make changes to the databases referenced. However, any calls to iguana.logError() and its relatives will execute, and will create actual log entries for the channel in which the resubmission is being made, without actually resubmitting it.

    To avoid these potentially misleading log entries, you can wrap calls to the Iguana logging functions with a conditional based on the return of iguana.isTest(). A sample:

       if iguana.isTest() then
          iguana.logInfo("Resubmission " .. alert)

    Jeff Drumm ◊ VP and COO ◊ HICG, LLC. ◊

You must be logged in to reply to this topic.