Announcement

Collapse
No announcement yet.

Is there a way to silence a particular log output without silencing the entire log category?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is there a way to silence a particular log output without silencing the entire log category?

    I'm hitting the following function over and over in a worker thread to read in the HTTP response stream (ala SSE/EventSource), but every time I do, this log output is printed.

    Code:
    const TArray<uint8>& FCurlHttpResponse::GetContent()
    {
    	if (!bIsReady)
    	{
    		UE_LOG(LogHttp, Warning, TEXT("Payload is incomplete. Response still processing. %p"),&Request);
    	}
    	return Payload;
    }
    Is there some sort of macro or other technique to silence the logger? I.e.

    Code:
    SILENCE_LOGGER
    MyHttpResponse->GetContent();
    UNSILENCE_LOGGER
    or equivalent.

    Thanks!

    #2
    I'd like to know this too, there's some PhysX related logspam in my project that's benign, but it certainly bogs things down.
    Trevor Lee

    Comment


      #3
      Originally posted by HateDread View Post
      I'm hitting the following function over and over in a worker thread to read in the HTTP response stream (ala SSE/EventSource), but every time I do, this log output is printed.

      Code:
      const TArray<uint8>& FCurlHttpResponse::GetContent()
      {
      	if (!bIsReady)
      	{
      		UE_LOG(LogHttp, Warning, TEXT("Payload is incomplete. Response still processing. %p"),&Request);
      	}
      	return Payload;
      }
      Is there some sort of macro or other technique to silence the logger? I.e.

      Code:
      SILENCE_LOGGER
      MyHttpResponse->GetContent();
      UNSILENCE_LOGGER
      or equivalent.

      Thanks!
      i am having same Warning while downloading in android. and 40% of the time it is crashing?
      did u face the carsh?
      Need help or work to be done?
      Contact Info

      Comment

      Working...
      X