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 | 	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 | 		chLogLevel = chLog.DebugLevel | ||||||
| 	} else { | 	} else { | ||||||
| 		chLogLevel = hclogLevelTochLog(level) | 		chLogLevel = hclogLevelTochLog(level) | ||||||
|   | |||||||
| @@ -19,7 +19,6 @@ package build | |||||||
| import ( | import ( | ||||||
| 	"log/slog" | 	"log/slog" | ||||||
| 	"sync" | 	"sync" | ||||||
| 	"syscall" |  | ||||||
|  |  | ||||||
| 	"gitea.plemya-x.ru/Plemya-x/ALR/internal/utils" | 	"gitea.plemya-x.ru/Plemya-x/ALR/internal/utils" | ||||||
| 	"gitea.plemya-x.ru/Plemya-x/ALR/pkg/manager" | 	"gitea.plemya-x.ru/Plemya-x/ALR/pkg/manager" | ||||||
| @@ -90,7 +89,5 @@ func NewMainBuilder( | |||||||
| 		repos: repos, | 		repos: repos, | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	slog.Warn("uid", "uid", syscall.Getuid(), "gid", syscall.Getgid()) |  | ||||||
|  |  | ||||||
| 	return builder, cleanup, nil | 	return builder, cleanup, nil | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user