user19687482
user19687482

Reputation:

Config P6Spy on Quarkus log result sql

<dependency>
    <groupId>p6spy</groupId>
    <artifactId>p6spy</artifactId>
    <version>1.3</version>
</dependency>

Expect: it show result log

{
    "createTime": "2022-09-27 08:27:42:705",
    "createTimeUnix": 1664292462705,
    "id": 3787,
    "updateTime": "2022-09-27 08:27:42:705",
    "updateTimeUnix": 1664292462705,
    "company": "IMIP",
    "country": "VietNam",
    "currency": "KRW",
    "description": "",
    "email": "[email protected]",
    "name": "Tong Thi Hoa 14",
    "status": "Active"
}

Upvotes: 0

Views: 342

Answers (1)

Andrey B. Panfilov
Andrey B. Panfilov

Reputation: 6092

By default p6spy does not log results - please read about excludecategories parameter and default values:

#list of categories to exclude: error, info, batch, debug, statement,
#commit, rollback, result and resultset are valid values
# (default is info,debug,result,resultset,batch)
#excludecategories=info,debug,result,resultset,batch

in your case I believe that should be something like:

excludecategories=info,debug,result,batch

FYI. The only author of p6spy has abandoned project - I do not see any reason to use p6spy in new projects, moreover quarkus recommends to use opentracing

Upvotes: 0

Related Questions