Skip to content

Commit

Permalink
comment out logs in router.go
Browse files Browse the repository at this point in the history
  • Loading branch information
karinamzalez committed Jan 26, 2024
1 parent 390cdb8 commit 4f5d4e5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ssas/service/public/router.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package public

import (
"context"
"fmt"
"os"
"time"

"github.com/CMSgov/bcda-ssas-app/log"
"github.com/CMSgov/bcda-ssas-app/ssas/constants"
"github.com/CMSgov/bcda-ssas-app/ssas/monitoring"
"github.com/CMSgov/bcda-ssas-app/ssas/service"
Expand All @@ -23,23 +21,23 @@ var server *service.Server

func init() {
infoMap = make(map[string][]string)
logger := log.GetCtxLogger(context.Background())
// logger := log.GetCtxLogger(context.Background())
publicSigningKeyPath = os.Getenv("SSAS_PUBLIC_SIGNING_KEY_PATH")
publicSigningKey = os.Getenv("SSAS_PUBLIC_SIGNING_KEY")
logger.Info("public signing key sourced from ", publicSigningKeyPath)
// logger.Info("public signing key sourced from ", publicSigningKeyPath)
clientAssertAud = os.Getenv("SSAS_CLIENT_ASSERTION_AUD")
logger.Info("aud value required in client assertion tokens:", clientAssertAud)
// logger.Info("aud value required in client assertion tokens:", clientAssertAud)
}

func Server() *service.Server {
unsafeMode := os.Getenv("HTTP_ONLY") == "true"
useMTLS := os.Getenv("PUBLIC_USE_MTLS") == "true"

signingKey, err := service.ChooseSigningKey(publicSigningKeyPath, publicSigningKey)
logger := log.GetCtxLogger(context.Background())
// logger := log.GetCtxLogger(context.Background())
if err != nil {
msg := fmt.Sprintf("Unable to get public server signing key: %v", err)
logger.Error(msg)
// msg := fmt.Sprintf("Unable to get public server signing key: %v", err)
// logger.Error(msg)
return nil
}

Expand Down

0 comments on commit 4f5d4e5

Please sign in to comment.