# UE\_LOG enters in an infinite loop at compile time

**URL:** <https://forums.unrealengine.com/t/ue-log-enters-in-an-infinite-loop-at-compile-time/477826>\
**Category:** Pipeline & Plugins\
**Tags:** infinite-loop, unreal-engine, Visual-Studio, question\
**Created:** [January 26, 2021, 8:14pm UTC](https://forums.unrealengine.com/t/ue-log-enters-in-an-infinite-loop-at-compile-time/477826 "2021-01-26T20:14:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcleary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mcleary/32/924204_2.png) [@mcleary](https://forums.unrealengine.com/u/mcleary)\
**Post date:** [January 26, 2021, 8:14pm UTC](https://forums.unrealengine.com/t/ue-log-enters-in-an-infinite-loop-at-compile-time/477826/1 "2021-01-26T20:14:13Z")

</div>

I was experimenting with Unreal 4.25 when I noticed that Visual Studio was taking forever to compile a simple project. I was removing stuff until I narrowed it down to how I wrote a call to `UE_LOG`. In this case it is just this:

```
void AEventsGameModeBase::TestFunction()
{
	FString Text = TEXT("Some Text");
	UE_LOG(LogGameMode, Info, TEXT("%s"), *Text);
}

```

I then realized that there is no `ELogVerbosity::Info`, however, this piece of code will make cl.exe enter into an infinite loop. I was expecting it to error out but that is not the case. This is clearly not a bug, but there I was wondering if anyone would know why the compiler doesn’t finish with this `Info` value that doesn’t exist.

I will try to investigate it at some point when I have time but maybe someone knows it already.

---

<div class="post-metadata">

**Author:** ![Overclocked22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Overclocked22](https://forums.unrealengine.com/u/Overclocked22)\
**Post date:** [February 18, 2021, 12:17am UTC](https://forums.unrealengine.com/t/ue-log-enters-in-an-infinite-loop-at-compile-time/477826/2 "2021-02-18T00:17:39Z")

</div>

Also seeing this myself. Tried to add UE\_LOG in a separate cpp file = infinite compile. Thought Info was a type too 😛

---

<div class="post-metadata">

**Author:** ![mcleary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mcleary/32/924204_2.png) [@mcleary](https://forums.unrealengine.com/u/mcleary)\
**Post date:** [February 18, 2021, 9:15am UTC](https://forums.unrealengine.com/t/ue-log-enters-in-an-infinite-loop-at-compile-time/477826/3 "2021-02-18T09:15:43Z")

</div>

I still have to find the time to investigate this as I’m curious on what could cause this
