Skip to content

Commit

Permalink
Added comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Jan 18, 2015
1 parent bde6512 commit beed86d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ object SerializationDebugger {
/**
* Write an object to the [[ObjectOutputStream]]. If a NotSerializableException is encountered,
* use our debug stream to capture the serialization stack leading to the problematic object.
*
* The debug stream is more expensive to write to, so we only write to it when we encounter
* an exception. This ensures no performance impact.
*/
def writeObject(out: ObjectOutputStream, obj: Any): Unit = {
try {
Expand Down

0 comments on commit beed86d

Please sign in to comment.