Skip to content

Excessive logging of full payload bytes in compression warning bloats log files #68

@shu-unifra

Description

@shu-unifra

Issue Description

The current logging in checkCompressedDataCompatibility
logs the full hex-encoded payload when compression is ineffective, which can cause:

  • Performance overhead from encoding large payloads (potentially hundreds of KB)
  • Log file bloat (single log entry can be hundreds of KB)
  • Poor readability and limited diagnostic value

Current Code

log.Warn("Compressed data is bigger or equal to the original data", 
    "payloadBytes", hex.EncodeToString(payloadBytes), 
    "compressedPayloadBytes", hex.EncodeToString(compressedPayloadBytes))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions