You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/06/19 13:50:59 UTC

[plc4x] 04/05: fix(plc4go/spi): fix worker logging on wrong logger

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit dcf630aa840b03e44549d88395535b5fbe613d6b
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Mon Jun 19 15:48:41 2023 +0200

    fix(plc4go/spi): fix worker logging on wrong logger
---
 plc4go/spi/pool/worker.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/spi/pool/worker.go b/plc4go/spi/pool/worker.go
index 7b1308de73..6017f6c78c 100644
--- a/plc4go/spi/pool/worker.go
+++ b/plc4go/spi/pool/worker.go
@@ -74,7 +74,7 @@ func (w *worker) stop(interrupt bool) {
 	w.stateChange.Lock()
 	defer w.stateChange.Unlock()
 	if !w.running.Load() {
-		log.Warn().Msg("Worker not running")
+		w.log.Warn().Msg("Worker not running")
 		return
 	}
 	w.shutdown.Store(true)