Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline logging when there is a failure #439

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

imback82
Copy link
Contributor

@imback82 imback82 commented Mar 4, 2020

Currently, when there is a failure on an operation (e.g., spark.Read().Json(path) because path was invalid), the JVM side pollutes the logs by printing out unnecessary info such as all the methods belonging to a class of the object in action.

This PR proposes to streamline the logging and now it will print out more descriptive one ERROR log line for such a failure:
20/03/03 17:14:34 ERROR DotnetBackendHandler: Failed to execute 'json' on 'org.apache.spark.sql.DataFrameReader' with args=([Type=scala.collection.mutable.WrappedArray.ofRef, Value: WrappedArray(aslkdf)])

The C# side logging remains the same, and you can turn on printing "all methods" by setting the log level to DEBUG.

@imback82 imback82 self-assigned this Mar 4, 2020
@imback82 imback82 added the enhancement New feature or request label Mar 4, 2020
@imback82 imback82 merged commit ecbdcb9 into dotnet:master Mar 4, 2020
@MikeRys MikeRys mentioned this pull request May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant