Remove file contents from debug output

Description

the app is using profiling timers to measure the time taken in different steps when creating a commit, which is awesome. Unfortunately, one of the timers includes the full file contents in the timer name. There are 2 problems with this:

  1. the timer name is held in-memory, which means that committing a 1 Mb file now consumes at least 2 Mb of memory.

  2. the complete file contents ends up in the profiling log when profiling logging is enabled. The file may contain sensitive information and should never be written to a log since logs may end up being shared with Atlassian Support.

Environment

None

Assignee

Andrey Levchenko

Reporter

Andrey Levchenko

Labels

None

Sprint

None

Priority

Lowest
Configure