Skip to content

Commit adf3b63

Browse files
committed
fix
1 parent 13f9c6a commit adf3b63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dbos/dbos.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func WithLogger(logger *slog.Logger) LaunchOption {
9090
}
9191
}
9292

93+
func Launch(options ...LaunchOption) error {
9394
if dbos != nil {
9495
fmt.Println("warning: DBOS instance already initialized, skipping re-initialization")
9596
return NewInitializationError("DBOS already initialized")
@@ -202,5 +203,9 @@ func Shutdown() {
202203
dbos.systemDB = nil
203204
}
204205

206+
if dbos.logger != nil {
207+
dbos.logger = nil
208+
}
209+
205210
dbos = nil
206211
}

0 commit comments

Comments
 (0)