Skip to content

Commit

Permalink
Lower log severity and print exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik Yagna committed Oct 20, 2023
1 parent b1f3cf4 commit 4ae946f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
import io.netty.handler.codec.http.Cookie;
import io.netty.handler.codec.http.CookieDecoder;
import io.netty.handler.codec.http.HttpContent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.URI;
Expand All @@ -44,6 +41,8 @@
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* User: michaels
Expand Down Expand Up @@ -394,10 +393,11 @@ public Cookies reParseCookies() {
cookies.add(cookie);
}
} catch (Exception e) {
LOG.error(
LOG.warn(
"Error parsing request Cookie header. cookie={}, request-info={}",
aCookieHeader,
getInfoForLogging());
getInfoForLogging(),
e);
}
}
parsedCookies = cookies;
Expand Down

0 comments on commit 4ae946f

Please sign in to comment.