Modified debug and server id

This commit is contained in:
Derek Collison
2016-03-20 15:57:43 -10:00
parent efce5d568e
commit 50a14ac1d5
3 changed files with 4 additions and 3 deletions

View File

@@ -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()

View File

@@ -10,7 +10,7 @@ import (
// Use nuid.
func genID() string {
return "NS:" + nuid.Next()
return nuid.Next()
}
// Ascii numbers 0-9

View File

@@ -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