Use a new context for the next step, because the current one of the job is already stopped

This commit is contained in:
Achim Rohn
2026-04-05 11:27:38 +02:00
parent 6312033fad
commit 5bab8de040
5 changed files with 80 additions and 30 deletions
+4 -3
View File
@@ -2,6 +2,7 @@ package ersteller
import (
"fmt"
"log"
"strings"
)
@@ -16,7 +17,7 @@ func LogDebug(message string, a ...any) {
}
func PrintLogDebug(message string, a ...any) {
println(fmt.Sprintf(message, a...))
log.Println(fmt.Sprintf(message, a...))
}
func Debug(a ...any) {
@@ -29,7 +30,7 @@ func Debug(a ...any) {
func PrintDebug(a ...any) {
stringValue := joinStrings(a)
println(stringValue)
log.Println(stringValue)
}
func joinStrings(a []any) string {
@@ -51,7 +52,7 @@ func LogError(message string, a ...any) {
}
func PrintLogError(message string, a ...any) {
println(fmt.Sprintf("Error: %v", fmt.Sprintf(message, a...)))
log.Println(fmt.Sprintf("Error: %v", fmt.Sprintf(message, a...)))
}
func Error(a ...any) {