forked from Plemya-x/ALR
		
	wip
This commit is contained in:
		| @@ -57,11 +57,15 @@ func (a *HCLoggerAdapter) Log(level hclog.Level, msg string, args ...interface{} | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	/* | ||||
| 	 * Start ugly hacks | ||||
| 	 */ | ||||
| 	// Start ugly hacks | ||||
| 	// Ignore exit messages | ||||
| 	// - https://github.com/hashicorp/go-plugin/issues/331 | ||||
| 	// - https://github.com/hashicorp/go-plugin/issues/203 | ||||
| 	// - https://github.com/hashicorp/go-plugin/issues/192 | ||||
| 	var chLogLevel chLog.Level | ||||
| 	if msg == "plugin process exited" || strings.HasPrefix(msg, "[DEBUG] plugin") { | ||||
| 	if msg == "plugin process exited" || | ||||
| 		msg == "[ERR] plugin: stream copy 'stderr' error: stream closed" || | ||||
| 		strings.HasPrefix(msg, "[DEBUG] plugin") { | ||||
| 		chLogLevel = chLog.DebugLevel | ||||
| 	} else { | ||||
| 		chLogLevel = hclogLevelTochLog(level) | ||||
|   | ||||
| @@ -19,7 +19,6 @@ package build | ||||
| import ( | ||||
| 	"log/slog" | ||||
| 	"sync" | ||||
| 	"syscall" | ||||
|  | ||||
| 	"gitea.plemya-x.ru/Plemya-x/ALR/internal/utils" | ||||
| 	"gitea.plemya-x.ru/Plemya-x/ALR/pkg/manager" | ||||
| @@ -90,7 +89,5 @@ func NewMainBuilder( | ||||
| 		repos: repos, | ||||
| 	} | ||||
|  | ||||
| 	slog.Warn("uid", "uid", syscall.Getuid(), "gid", syscall.Getgid()) | ||||
|  | ||||
| 	return builder, cleanup, nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user