You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "mynameborat (via GitHub)" <gi...@apache.org> on 2023/02/01 20:01:34 UTC

[GitHub] [beam] mynameborat commented on a diff in pull request #25265: Support samza portable UDF metrics.

mynameborat commented on code in PR #25265:
URL: https://github.com/apache/beam/pull/25265#discussion_r1093675113


##########
runners/samza/src/main/java/org/apache/beam/runners/samza/runtime/SamzaMetricsBundleProgressHandler.java:
##########
@@ -148,7 +151,10 @@ private void parseAndUpdateMetric(MetricsApi.MonitoringInfo monitoringInfo) {
         break;
 
       default:
-        LOG.warn("Unsupported metric type {}", monitoringInfo.getType());
+        if (LOG.isDebugEnabled()) {

Review Comment:
   IMO, this check is overkill as the log message itself is not constructing complex statements (string)? I think it is better to just do `LOG.debug`  
   
   Additionally it is just more readable than this additional branching.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org