Skip to content

disable debug.log by default + add config option to enable it#100

Merged
RhettCreighton merged 2 commits intoZclassicCommunity:masterfrom
hairetikos:patch-5
Jan 4, 2026
Merged

disable debug.log by default + add config option to enable it#100
RhettCreighton merged 2 commits intoZclassicCommunity:masterfrom
hairetikos:patch-5

Conversation

@hairetikos
Copy link

@hairetikos hairetikos commented Nov 25, 2025

  • disabled debug.log by default.

This insecure default was inherited from zcash.

the debug log may contain sensitive transaction metadata. it should only be used for debugging, not for production, therefore debug logs now are not created unless explicitly enabled.

  • Added the -debuglogfile config option since it is now disabled by default

fixes #97

secure shredding will be implemented next

This insecure default was inherited from zcash. the debug log may contain sensitive transaction metadata. it should only be used for debugging, not for production, therefore debug logs now are not created unless explicitly enabled.
since we now disable debug.log by default, add option to enable debug.log
@hairetikos hairetikos closed this Nov 27, 2025
@hairetikos hairetikos deleted the patch-5 branch November 27, 2025 22:17
@hairetikos hairetikos restored the patch-5 branch November 28, 2025 02:26
@hairetikos hairetikos reopened this Nov 28, 2025
VictorLux added a commit to VictorLux/zclassic that referenced this pull request Dec 9, 2025
Copy link

@RhettCreighton RhettCreighton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review: APPROVED

Security improvement - well justified:

  1. util.cpp: Changes fPrintToDebugLog default from true to false - correct behavior for a privacy-focused coin

  2. init.cpp: Adds -debuglogfile option with clear help text indicating it's disabled by default for privacy reasons

The fix is minimal and focused. Users who need debug logging for development/troubleshooting can explicitly enable it with -debuglogfile=1.

Addresses issue #97. Ready to merge.

@RhettCreighton RhettCreighton merged commit b669dff into ZclassicCommunity:master Jan 4, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

insecure default configs inherited from zcash

2 participants