This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 347a401dec3 adjust log level (#25692)
347a401dec3 is described below

commit 347a401dec3166119c19cab504486949015fa0bc
Author: Oleh Borysevych <[email protected]>
AuthorDate: Thu Mar 2 16:02:41 2023 +0200

    adjust log level (#25692)
---
 playground/backend/internal/preparers/python_preparers.go      | 2 +-
 playground/backend/internal/preparers/python_preparers_test.go | 2 +-
 playground/backend/logging.properties                          | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/playground/backend/internal/preparers/python_preparers.go 
b/playground/backend/internal/preparers/python_preparers.go
index c3514a51741..bb51d309e21 100644
--- a/playground/backend/internal/preparers/python_preparers.go
+++ b/playground/backend/internal/preparers/python_preparers.go
@@ -26,7 +26,7 @@ import (
 )
 
 const (
-       addLogHandlerCode       = "import logging\nlogging.basicConfig(\n    
level=logging.DEBUG,\n    format=\"%(asctime)s [%(levelname)s] %(message)s\",\n 
   handlers=[\n        logging.FileHandler(\"logs.log\"),\n    ]\n)\n"
+       addLogHandlerCode       = "import logging\nlogging.basicConfig(\n    
level=logging.INFO,\n    format=\"%(asctime)s [%(levelname)s] %(message)s\",\n  
  handlers=[\n        logging.FileHandler(\"logs.log\"),\n    ]\n)\n"
        oneIndentation          = "  "
        findWithPipelinePattern = `(\s*)with.+Pipeline.+as (.+):`
        indentationPattern      = `^(%s){0,1}\w+`
diff --git a/playground/backend/internal/preparers/python_preparers_test.go 
b/playground/backend/internal/preparers/python_preparers_test.go
index e2cd2aac73a..b2cfa7eccaa 100644
--- a/playground/backend/internal/preparers/python_preparers_test.go
+++ b/playground/backend/internal/preparers/python_preparers_test.go
@@ -53,7 +53,7 @@ func TestGetPythonPreparers(t *testing.T) {
 }
 
 func Test_addCodeToFile(t *testing.T) {
-       wantCode := "import logging\nlogging.basicConfig(\n    
level=logging.DEBUG,\n    format=\"%(asctime)s [%(levelname)s] %(message)s\",\n 
   handlers=[\n        logging.FileHandler(\"logs.log\"),\n    ]\n)\n" + pyCode
+       wantCode := "import logging\nlogging.basicConfig(\n    
level=logging.INFO,\n    format=\"%(asctime)s [%(levelname)s] %(message)s\",\n  
  handlers=[\n        logging.FileHandler(\"logs.log\"),\n    ]\n)\n" + pyCode
 
        type args struct {
                args []interface{}
diff --git a/playground/backend/logging.properties 
b/playground/backend/logging.properties
index 3f5737eb206..aaaedc96fbb 100644
--- a/playground/backend/logging.properties
+++ b/playground/backend/logging.properties
@@ -18,3 +18,4 @@ handlers=java.util.logging.FileHandler
 java.util.logging.FileHandler.pattern={logFilePath}
 java.util.logging.FileHandler.count=1
 java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
+java.util.logging.FileHandler.level=INFO

Reply via email to