Skip to content

Commit

Permalink
Move logs to debug (#444)
Browse files Browse the repository at this point in the history
Co-authored-by: mihir gore <mihir@mihirs-MacBook-Pro.local>
  • Loading branch information
mihirgt and mihir gore authored Dec 19, 2023
1 parent 3a96caf commit ce49e1c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions owasp-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,13 @@
<packageUrl regex="true">^pkg:maven/io\.netty/netty.*@.*$</packageUrl>
<vulnerabilityName>CVE-2023-44487</vulnerabilityName>
</suppress>
<suppress until="2023-12-31Z">
<notes><![CDATA[
This CVE (rapid RST) is already mitigated as our servers aren't directly exposed, but it's also
addressed in 1.59.1, which the CVE doesn't reflect (not all grpc impls versions are exactly aligned).
Ref: https://github.com/grpc/grpc-java/pull/10675
]]></notes>
<packageUrl regex="true">^pkg:maven/io\.grpc/grpc\-.*@.*$</packageUrl>
<cve>CVE-2023-44487</cve>
</suppress>
</suppressions>
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public static Optional<String> getHttpHost(Event event) {
try {
return Optional.ofNullable(getNormalizedUrl(url.get()).getAuthority());
} catch (MalformedURLException | URISyntaxException e) {
LOGGER.warn(
LOGGER.debug(
"On extracting httpHost, received an invalid URL: {}, {}", url.get(), e.getMessage());
}
}
Expand All @@ -478,7 +478,7 @@ public static Optional<String> getHttpPath(Event event) {
}
return Optional.of(removeTrailingSlash(pathVal));
} catch (MalformedURLException | URISyntaxException e) {
LOGGER.warn(
LOGGER.debug(
"On extracting httpPath, received an invalid URL: {}, {}", url.get(), e.getMessage());
}
}
Expand Down Expand Up @@ -528,7 +528,7 @@ public static Optional<String> getHttpScheme(Event event) {
try {
scheme = Optional.of(getNormalizedUrl(url.get()).getProtocol());
} catch (MalformedURLException | URISyntaxException e) {
LOGGER.warn(
LOGGER.debug(
"On extracting httpScheme, received an invalid URL: {}, {}", url.get(), e.getMessage());
}
}
Expand Down Expand Up @@ -593,7 +593,7 @@ private static Optional<String> getHttpSchemeFromRawAttributes(
return Optional.of(scheme);
}
} catch (Exception e) {
LOGGER.warn(
LOGGER.debug(
"On extracting scheme, received an invalid origin header: {}, {}",
origin,
e.getMessage());
Expand Down Expand Up @@ -671,7 +671,7 @@ public static Optional<String> getHttpQueryString(Event event) {
try {
return Optional.ofNullable(getNormalizedUrl(url.get()).getQuery());
} catch (MalformedURLException | URISyntaxException e) {
LOGGER.warn(
LOGGER.debug(
"On extracting httpQueryString, received an invalid URL: {}, {}",
url.get(),
e.getMessage());
Expand Down Expand Up @@ -855,7 +855,7 @@ static Optional<String> getPathFromUrlObject(String urlPath) {
URL url = getNormalizedUrl(urlPath);
return Optional.of(url.getPath());
} catch (MalformedURLException | URISyntaxException e) {
LOGGER.warn(
LOGGER.debug(
"On extracting httpResponseStatusCode, received invalid URL path : {}, {}",
urlPath,
e.getMessage());
Expand Down

0 comments on commit ce49e1c

Please sign in to comment.