Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
prefix log messages properly
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsaj committed Nov 9, 2016
1 parent e658f06 commit f750591
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions input/carbon/carbon.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func ConfigProcess() {
var err error
schemas, err = persister.ReadWhisperSchemas(schemasFile)
if err != nil {
log.Fatal(4, "can't read schemas file %q: %s", schemasFile, err.Error())
log.Fatal(4, "carbon-in: can't read schemas file %q: %s", schemasFile, err.Error())
}
var defaultFound bool
for _, schema := range schemas {
Expand All @@ -102,7 +102,7 @@ func ConfigProcess() {
if !defaultFound {
// good graphite health (not sure what graphite does if there's no .*)
// but we definitely need to always be able to determine which interval to use
log.Fatal(4, "storage-conf does not have a default '.*' pattern")
log.Fatal(4, "carbon-in: storage-conf does not have a default '.*' pattern")
}

}
Expand Down Expand Up @@ -143,7 +143,7 @@ func (c *Carbon) accept() {
return
default:
}
log.Error(4, "Accept Error: %s", err.Error())
log.Error(4, "carbon-in: Accept Error: %s", err.Error())
return
}
c.handlerWaitGroup.Add(1)
Expand All @@ -153,7 +153,7 @@ func (c *Carbon) accept() {
}

func (c *Carbon) Stop() {
log.Info("Carbon: shutting down.")
log.Info("carbon-in: shutting down.")
close(c.quit)
c.listener.Close()
c.connTrack.CloseAll()
Expand All @@ -179,7 +179,7 @@ func (c *Carbon) handle(conn net.Conn) {
default:
}
if io.EOF != err {
log.Error(4, "Recv error: %s", err.Error())
log.Error(4, "carbon-in: Recv error: %s", err.Error())
}
break
}
Expand Down

0 comments on commit f750591

Please sign in to comment.