Skip to content

Commit

Permalink
enable logging for sync request
Browse files Browse the repository at this point in the history
now that sync request evaluations happen in the skills platform and not locally, we should re-enable full logging to have visibility into failures
  • Loading branch information
Paul Norton committed Feb 26, 2024
1 parent c577044 commit 98d05a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func createLogger(ctx context.Context, event EventIncoming) Logger {

var doLog = func(msg string, level edn.Keyword) {
// Don't send logs when evaluating policies locally
if os.Getenv("SCOUT_LOCAL_POLICY_EVALUATION") == "true" || event.Type == "sync-request" {
if os.Getenv("SCOUT_LOCAL_POLICY_EVALUATION") == "true" {
return
}
bs, err := edn.MarshalPPrint(internal.LogBody{Logs: []internal.LogEntry{{
Expand Down

0 comments on commit 98d05a6

Please sign in to comment.