ibzib commented on a change in pull request #11051: [BEAM-9448] Fix log message 
for job server cache.
URL: https://github.com/apache/beam/pull/11051#discussion_r388600537
 
 

 ##########
 File path: sdks/python/apache_beam/utils/subprocess_server.py
 ##########
 @@ -194,9 +194,11 @@ def local_jar(cls, url):
     if os.path.exists(url):
       return url
     else:
-      _LOGGER.warning('Downloading job server jar from %s' % url)
       cached_jar = os.path.join(cls.JAR_CACHE, os.path.basename(url))
-      if not os.path.exists(cached_jar):
+      if os.path.exists(cached_jar):
+        _LOGGER.warning('Using cached job server jar from %s' % url)
+      else:
+        _LOGGER.warning('Downloading job server jar from %s' % url)
 
 Review comment:
   Changed it to `info`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to