chore(chatlog): disable background message file logging (stage 1) #127
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/remove-chatlog-stage-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Stage 1 of removing the chatlog subsystem that wrote plain-text per-day message logs to
$XDG_DATA_HOME/profanity/chatlogs/<account>/<other>/YYYY_MM_DD.log(andchatlogs/<account>/rooms/...for MUCs). These files were never read back by Profanity — history replay in src/ui/chatwin.c reads from the database vialog_database_get_previous_chat, not from these files — so the feature only ever wrote to disk for users to inspect with external tools.This change reduces src/chatlog.c to no-op stubs while preserving all 12 public signatures. The ~20 call sites in
src/event/,src/otr/otr.candsrc/profanity.ccontinue to compile and link unchanged.What changes for users
chatlogs/directory is no longer created or written to.chatlogs/data on disk is left untouched (users may delete it manually)./logging,/otr log,/pgp log,/omemo log,/ox logand the related preferences (chlog,grlog,otr.log,pgp.log,omemo.log,ox.log) continue to be accepted but have no on-disk effect.What is NOT affected
PREF_DBLOG,PREF_HISTORY,/history, SQLite/flatfile backends.log.c,/log,profanity*.log.xmlconsole, OMEMO/OTR/PGP/OX encryption flows.Follow-up stages (separate PRs)
/logging,/otr log,/pgp log,/omemo log,/ox logcommands and decouplePREF_CHLOGfrom history-replay gating inchatwin.c.PREF_CHLOG/PREF_GRLOG/PREF_OTR_LOG/PREF_PGP_LOG/PREF_OMEMO_LOG/PREF_OX_LOGpreferences.src/chatlog.c,src/chatlog.h,tests/unittests/chatlog/stub_chatlog.c,DIR_CHATLOGSand the_create_chatlogs_dirhelper in functional tests.