# Correspond Log Messages to Projects

**URL:** <https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906>\
**Category:** Ignition\
**Created:** [June 2, 2025, 4:44pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906 "2025-06-02T16:44:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [June 2, 2025, 4:44pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906/1 "2025-06-02T16:44:25Z")

</div>

I have a dev gateway where there are multiple projects which different developers are working on. At this time one of the projects is running a script that is causing a warning message to appear every second in the Diagnostics/Logs of the gateway web interface. This is making it difficult to view my own logs on the gateway and needs to go.

The problem is, I don't know which project is calling this script. The only thing I do know is that the script causing the warning is calling `system.date.hoursBetween`, since the warning is:  
_hoursBetween function expected a 'date' first argument, but got null_

**Is there a way to find out which project in the gateway is causing these log entries?** I know I can filter on which projects I see logs for using the _MDC Filter Configuration_, but I would rather not filter for each project if I don't have to.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 2, 2025, 4:47pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906/2 "2025-06-02T16:47:30Z")

</div>

> [@Slick](#):
>
> function expected a 'date' first argument

You can temporarily set the logging level of the `expressions.hoursBetween` logger to error to discard the warn level messages.

---

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [June 2, 2025, 4:53pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906/3 "2025-06-02T16:53:31Z")

</div>

Thanks, this is a good temporary solution. My greater goal however would be to ask the owner of this project to fix the script, so the corresponding warning log entries stop appearing. Unfortunately, I just don't know which project it is. Is there any way to determine which project corresponds to this log entry other than filtering with the _MDC Filter Configuration_?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 2, 2025, 4:57pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906/4 "2025-06-02T16:57:07Z")

</div>

> [@Slick](#):
>
> Is there any way to determine which project corresponds to this log entry other than filtering with the _MDC Filter Configuration_?

Look at the wrapper.log file in the gateway install folder. MDC entries show in plain text there.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 2, 2025, 5:03pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906/5 "2025-06-02T17:03:48Z")

</div>

The web UI will show a magnifying glass icon next to logged messages that have associated MDC keys. If you don't see those in the web UI, then the error messages being logged don't have any associated MDC context, and unfortunately for you, troubleshooting becomes more challenging.

In the Designer, you can open each project (only one at a time) and Ctrl + F to find references to the `hoursBetween` expression function.

---

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [June 2, 2025, 5:09pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906/6 "2025-06-02T17:09:37Z")

</div>

Thanks for the response. Unfortunately, I do not have access to this folder. Otherwise, this seems like it would be a good solution.

---

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [June 2, 2025, 5:11pm UTC](https://forum.inductiveautomation.com/t/correspond-log-messages-to-projects/106906/7 "2025-06-02T17:11:48Z")

</div>

None of my log messages have magnifying glasses unfortunately. I believe I will have to simply open each project as you state and CTRL+F it. Thanks.
