Commit b779e62f authored by Michael de Hoog's avatar Michael de Hoog

More logging fixes

parent 166bb009
......@@ -44,8 +44,6 @@ func Main(version string, cliCtx *cli.Context) error {
return err
}
l.Info("Starting Batch Submitter")
if !cfg.Stopped {
if err := batchSubmitter.Start(); err != nil {
l.Error("Unable to start Batch Submitter", "error", err)
......
......@@ -123,6 +123,8 @@ func NewBatchSubmitter(ctx context.Context, cfg Config, l log.Logger) (*BatchSub
}
func (l *BatchSubmitter) Start() error {
l.log.Info("Starting Batch Submitter")
l.mutex.Lock()
defer l.mutex.Unlock()
......@@ -151,6 +153,8 @@ func (l *BatchSubmitter) StopIfRunning() {
}
func (l *BatchSubmitter) Stop() error {
l.log.Info("Stopping Batch Submitter")
l.mutex.Lock()
defer l.mutex.Unlock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment