mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Remove global logger
gnatsd currently uses a global logger. This can cause some problems (especially around the config-reload work), but global variables are also just an anti-pattern in general. The current behavior is particularly surprising because the global logger is configured through calls to the Server. This addresses issue #500 by removing the global logger and making it a field on Server.
This commit is contained in:
@@ -288,7 +288,8 @@ func TestSplitConnectArg(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSplitDanglingArgBuf(t *testing.T) {
|
||||
c := &client{subs: make(map[string]*subscription)}
|
||||
s := New(&defaultServerOptions)
|
||||
c := &client{srv: s, subs: make(map[string]*subscription)}
|
||||
|
||||
// We test to make sure we do not dangle any argBufs after processing
|
||||
// since that could lead to performance issues.
|
||||
|
||||
Reference in New Issue
Block a user