Skip to content

Commit 1519a9f

Browse files
author
SerggAidd
committed
app lint fix
1 parent dcf6f7e commit 1519a9f

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

app_go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,4 @@ func main() {
455455
})
456456
os.Exit(1)
457457
}
458-
}
458+
}

app_python/app.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class JSONFormatter(logging.Formatter):
4343

4444
def format(self, record):
4545
payload = {
46-
"timestamp": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
46+
"timestamp":
47+
datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
4748
"level": record.levelname,
4849
"logger": record.name,
4950
"message": record.getMessage(),
@@ -70,11 +71,13 @@ def format(self, record):
7071

7172

7273
# Logging configuration (stdout; suitable for Docker/Kubernetes)
73-
# We explicitly log to stdout because container log collectors read stdout/stderr
74+
# We explicitly log to stdout because container
75+
# log collectors read stdout/stderr
7476
handler = logging.StreamHandler(sys.stdout)
7577
handler.setFormatter(JSONFormatter())
7678

77-
# Configure root logger so library/application logs also go through JSON formatter
79+
# Configure root logger so library/application logs also go
80+
# through JSON formatter
7881
root_logger = logging.getLogger()
7982
root_logger.handlers.clear()
8083
root_logger.addHandler(handler)

0 commit comments

Comments
 (0)