Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doobie LogHandler dont work with a quill #2985

Open
apavlychev opened this issue Jan 24, 2024 · 0 comments
Open

Doobie LogHandler dont work with a quill #2985

apavlychev opened this issue Jan 24, 2024 · 0 comments

Comments

@apavlychev
Copy link

apavlychev commented Jan 24, 2024

Version: 4.8.1
Module: quill-doobie
Database: postgres

Expected behavior

A effectfull logger LogHandler (https://tpolecat.github.io/doobie/docs/10-Logging.html) work with a quill

Actual behavior and steps to reproduce the behavior

I've seen the logger work only when I have a doobie statement:

import doobie.implicits._
sql"SELECT 1".query[Int].unique.transact(transactor).unsafeRunSync()

and don't work with quill:

val doobieContext = new CustomPostgresContext(SnakeCase)
import doobieContext._
import doobieContext.compat._
import doobie.implicits._
run(quote(qsql"""SELECT 2""".as[Query[Int]])).map(_.head).transact(transactor).unsafeRunSync()

@getquill/maintainers

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

No branches or pull requests

1 participant