This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch remove-warning-message
in repository https://gitbox.apache.org/repos/asf/sedona.git

commit b0113a60233a6342762c17964922a43c0020b6e1
Author: Jia Yu <[email protected]>
AuthorDate: Thu Apr 18 23:09:46 2024 -0700

    Move the error message to info level and stop printing the java stacktrace
---
 python/sedona/core/jvm/config.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/python/sedona/core/jvm/config.py b/python/sedona/core/jvm/config.py
index 1ad1da12c..16bc7749e 100644
--- a/python/sedona/core/jvm/config.py
+++ b/python/sedona/core/jvm/config.py
@@ -187,10 +187,9 @@ class SparkJars:
 
         try:
             used_jar_files = java_spark_conf.get(value)
-        except Py4JJavaError as java_error:
-            error_message = "Failed to get the value of {} from SparkConf: 
{}".format(
-                value, java_error
-            )
+        except Py4JJavaError:
+            error_message = "Didn't find the value of {} from 
SparkConf".format(value)
+            logging.info(error_message)
 
         return used_jar_files, error_message
 

Reply via email to