vlog configuration change: https://vanadium-review.googlesource.com/#/c/6830/
MultiPart: 2/3

Change-Id: Icee8cfe774fd5a08c9ad6f7189ab762588457943
diff --git a/profiles/internal/rt/runtime.go b/profiles/internal/rt/runtime.go
index 7496438..855aa0a 100644
--- a/profiles/internal/rt/runtime.go
+++ b/profiles/internal/rt/runtime.go
@@ -69,7 +69,7 @@
 	r := &Runtime{deps: dependency.NewGraph()}
 
 	err := vlog.ConfigureLibraryLoggerFromFlags()
-	if err != nil {
+	if err != nil && err != vlog.Configured {
 		return nil, nil, nil, err
 	}
 	// TODO(caprita): Only print this out for servers?
diff --git a/services/wsprd/browspr/main/main_nacl.go b/services/wsprd/browspr/main/main_nacl.go
index 5b2912b..b75b5f4 100644
--- a/services/wsprd/browspr/main/main_nacl.go
+++ b/services/wsprd/browspr/main/main_nacl.go
@@ -238,7 +238,9 @@
 	vlog.VI(1).Infof("Configuring vlog with v=%v, modulesSpec=%v", msg.LogLevel, msg.LogModule)
 	moduleSpec := vlog.ModuleSpec{}
 	moduleSpec.Set(msg.LogModule)
-	vlog.Log.ConfigureLogger(vlog.Level(msg.LogLevel), moduleSpec)
+	if err := vlog.Log.Configure(vlog.OverridePriorConfiguration(true), vlog.Level(msg.LogLevel), moduleSpec); err != nil {
+		return nil, err
+	}
 
 	// TODO(ataly, bprosnitz, caprita): The runtime MUST be cleaned up
 	// after use. Figure out the appropriate place to add the Cleanup call.