Signed-off-by: John Howard <jhoward@microsoft.com> Upstream-commit: 042f53737cec84e2f1419e20fe37dd0eb1d5a9fa Component: engine
25 lines
294 B
Go
25 lines
294 B
Go
// +build windows
|
|
|
|
package client
|
|
|
|
import (
|
|
"os"
|
|
"strconv"
|
|
)
|
|
|
|
var (
|
|
logDataFromUVM int64
|
|
)
|
|
|
|
func init() {
|
|
bytes := os.Getenv("OPENGCS_LOG_DATA_FROM_UVM")
|
|
if len(bytes) == 0 {
|
|
return
|
|
}
|
|
u, err := strconv.ParseUint(bytes, 10, 32)
|
|
if err != nil {
|
|
return
|
|
}
|
|
logDataFromUVM = int64(u)
|
|
}
|