mirror of
https://github.com/openziti/zrok.git
synced 2025-08-19 04:06:18 +02:00
basic position durability for tail operation (#128)
This commit is contained in:
@@ -12,7 +12,6 @@ type MetricsAgent struct {
|
||||
|
||||
func Run(cfg *Config) (*MetricsAgent, error) {
|
||||
logrus.Info("starting")
|
||||
defer logrus.Warn("stopping")
|
||||
|
||||
if cfg.Source == nil {
|
||||
return nil, errors.New("no 'source' configured; exiting")
|
||||
@@ -42,6 +41,7 @@ func Run(cfg *Config) (*MetricsAgent, error) {
|
||||
}
|
||||
|
||||
func (ma *MetricsAgent) Stop() {
|
||||
logrus.Info("stopping")
|
||||
ma.src.Stop()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user