Skip to content

Commit

Permalink
Merge pull request #32740 from hjtran/playground_logging
Browse files Browse the repository at this point in the history
Remove beam logging in playground for Python
  • Loading branch information
liferoad authored Nov 4, 2024
2 parents e85df79 + 489ebc6 commit 242b0b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playground/backend/internal/preparers/python_preparers.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
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"
addLogHandlerCode = "import logging\nlogging.basicConfig(\n level=logging.ERROR,\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+`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestGetPythonPreparers(t *testing.T) {
}

func Test_addCodeToFile(t *testing.T) {
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
wantCode := "import logging\nlogging.basicConfig(\n level=logging.ERROR,\n format=\"%(asctime)s [%(levelname)s] %(message)s\",\n handlers=[\n logging.FileHandler(\"logs.log\"),\n ]\n)\n" + pyCode

type args struct {
args []interface{}
Expand Down

0 comments on commit 242b0b2

Please sign in to comment.