mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Modified debug and server id
This commit is contained in:
@@ -204,6 +204,8 @@ func (s *Server) logPid() {
|
||||
// Start via a Go routine if needed.
|
||||
func (s *Server) Start() {
|
||||
Noticef("Starting gnatsd version %s", VERSION)
|
||||
Debugf("Go build version %s", s.info.GoVersion)
|
||||
|
||||
s.running = true
|
||||
|
||||
// Log the pid to a file
|
||||
@@ -319,8 +321,8 @@ func (s *Server) AcceptLoop() {
|
||||
Noticef("TLS required for client connections")
|
||||
}
|
||||
|
||||
Debugf("server id is %s", s.info.ID)
|
||||
Noticef("server is ready")
|
||||
Debugf("server id - %s", s.info.ID)
|
||||
|
||||
// Setup state that can enable shutdown
|
||||
s.mu.Lock()
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
// Use nuid.
|
||||
func genID() string {
|
||||
return "NS:" + nuid.Next()
|
||||
return nuid.Next()
|
||||
}
|
||||
|
||||
// Ascii numbers 0-9
|
||||
|
||||
@@ -209,7 +209,6 @@ func (s *Sublist) Match(subject []byte) []interface{} {
|
||||
atomic.AddUint64(&s.stats.cacheHits, 1)
|
||||
return r.([]interface{})
|
||||
}
|
||||
|
||||
// Cache miss
|
||||
|
||||
// Process subject into tokens, this is performed
|
||||
|
||||
Reference in New Issue
Block a user