Skip to content

Better Log.e() usage #65

Closed
Closed
@commonsguy

Description

@commonsguy

Instead of lines like:

Log.e(TAG, "Error copying icu data file" + e.getMessage());

I recommend:

Log.e(TAG, "Error copying icu data file", e);

This has two advantages:

  1. The entire stack trace for the exception will be logged, which is useful for figuring out the precise nature of the problem (particularly since getMessage() is often not helpful).
  2. It is less typing. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA software enhancement for SQLCipher for Android

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions