aboutsummaryrefslogtreecommitdiff
path: root/setup/jetstream
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-03-22 09:21:32 +0100
committerGitHub <noreply@github.com>2023-03-22 09:21:32 +0100
commit5e85a00cb36c3d343cd5b6f6a18435989724a135 (patch)
treeb22c34dd0a6cdc04025b90086843f9084a876412 /setup/jetstream
parentec6879e5ae2919c903707475ce8d72244b2a6847 (diff)
Remove `BaseDendrite` (#3023)
Removes `BaseDendrite` to, hopefully, make testing and composing of components easier in the future.
Diffstat (limited to 'setup/jetstream')
-rw-r--r--setup/jetstream/nats.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup/jetstream/nats.go b/setup/jetstream/nats.go
index 48683789..06a58d54 100644
--- a/setup/jetstream/nats.go
+++ b/setup/jetstream/nats.go
@@ -56,7 +56,9 @@ func (s *NATSInstance) Prepare(process *process.ProcessContext, cfg *config.JetS
if err != nil {
panic(err)
}
- s.SetLogger(NewLogAdapter(), opts.Debug, opts.Trace)
+ if !cfg.NoLog {
+ s.SetLogger(NewLogAdapter(), opts.Debug, opts.Trace)
+ }
go func() {
process.ComponentStarted()
s.Start()