From 0034aaa82ac00a75866e77a3570febdec8d291d1 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Thu, 22 Aug 2019 13:25:29 -0700 Subject: Send sandbox log to test log This used to be the case, but when --alsologtostderr was added, it stopped logging. PiperOrigin-RevId: 264905640 --- runsc/test/testutil/testutil.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'runsc/test') diff --git a/runsc/test/testutil/testutil.go b/runsc/test/testutil/testutil.go index e288c7758..4a3dfa0e3 100644 --- a/runsc/test/testutil/testutil.go +++ b/runsc/test/testutil/testutil.go @@ -127,13 +127,15 @@ func FindFile(path string) (string, error) { // 'RootDir' must be set by caller if required. func TestConfig() *boot.Config { return &boot.Config{ - Debug: true, - LogFormat: "text", - LogPackets: true, - Network: boot.NetworkNone, - Strace: true, - Platform: "ptrace", - FileAccess: boot.FileAccessExclusive, + Debug: true, + LogFormat: "text", + DebugLogFormat: "text", + AlsoLogToStderr: true, + LogPackets: true, + Network: boot.NetworkNone, + Strace: true, + Platform: "ptrace", + FileAccess: boot.FileAccessExclusive, TestOnlyAllowRunAsCurrentUserWithoutChroot: true, NumNetworkChannels: 1, } -- cgit v1.2.3