Skip to content

Commit 939e012

Browse files
authored
fix: Orchestrion initializes Gorm plugin twice (#3968)
1 parent 6672251 commit 939e012

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/gorm.io/gorm.v1/orchestrion.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ aspects:
2323
if err != nil {
2424
return nil, err
2525
}
26+
if _, ok := db.Plugins["DDTracePlugin"]; ok {
27+
return db, nil
28+
}
2629
if err := db.Use(gormtrace.NewTracePlugin()); err != nil {
2730
return nil, err
2831
}

0 commit comments

Comments
 (0)