Log info if source already exists

pull/1695/head
Jared Scheib 2017-07-06 11:19:10 -07:00
parent eb762dda86
commit 96a7dc310d
1 changed files with 4 additions and 0 deletions

View File

@ -658,6 +658,10 @@ func NewSources(ctx context.Context, sourcesStore SourcesStore, serversStore Ser
for _, src := range srcs {
if src.Name == srcKap.Source.Name {
isNewSource = false
logger.
WithField("component", "server").
WithField("NewSource", src.Name).
Info("Source already exists")
break
}
}