Enable debug logging in all testing scenarios

It is really helpful to have verbose logs during test debugging.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler
2020-11-11 09:01:43 -05:00
parent 724c0d3eb0
commit 83a156d72b
3 changed files with 9 additions and 0 deletions
+5
View File
@@ -395,6 +395,11 @@ func run() error {
}
func main() {
// Hardcode the logging level to debug, since this is a test app and it is very helpful to have
// verbose logs to debug test failures.
if err := plog.ValidateAndSetLogLevelGlobally(plog.LevelDebug); err != nil {
klog.Fatal(err)
}
if err := run(); err != nil {
klog.Fatal(err)
}