Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 180
    • Issues 180
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 12
    • Merge Requests 12
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #499

Closed
Open
Opened Aug 04, 2025 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

Add ability to emit log messages to DbTx monad

Currently the subset of effects that the DbTx supports is very small, and that's by design: given that DB transactions needs to be "rollbackable" we need the effects to be chosen carefully as they need to be reversible.

Emitting log messages falls in a bit of a gray area: clearly is not possible to "rollback" writing characters to an IO Handle, but the effect of emitting a log message is benign (i.e. it's a side effect that doesn't write to disk, etc).

For this reason, I think I'm in favour of adding support for emitting log messages to a DbTx, so that we can restore some calls to logLocM that we had to comment out when rewriting the DB operations in terms of DBQuery and DBUpdate.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#499