Skip to content

Commit

Permalink
Merge pull request #631 from mendix/develop
Browse files Browse the repository at this point in the history
Release 2023-05-04
  • Loading branch information
sailhenz authored May 4, 2023
2 parents 4934c0c + 4cb3b56 commit 0b8723b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions buildpack/telemetry/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ def _inject_health(self, stats):
else:
health["health"] = translation["critical"]
health["diagnosis"] = (
"Health check failed unexpectedly: %s",
health_response.get_error(),
"Health check failed unexpectedly: "
f"{health_response.get_error()}"
)
else:
feedback = health_response.get_feedback()
Expand All @@ -365,7 +365,7 @@ def _inject_health(self, stats):
except Exception as exc:
logging.warning("Metrics: Failed to get health status %s", str(exc))
health["health"] = translation["critical"]
health["diagnosis"] = "Health check failed unexpectedly: %s", exc
health["diagnosis"] = f"Health check failed unexpectedly: {exc}"
return stats

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ dependencies:
- jdk
vendor: Adoptium
version:
- "8": 8u332
- "11": 11.0.16
- "8": 8u372
- "11": 11.0.18
logs:
mendix-logfilter:
artifact: logs/mendix-logfilter-{{version}}.tar.gz
Expand Down
9 changes: 6 additions & 3 deletions etc/telegraf/telegraf.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
flush_jitter = "5s"
precision = ""
debug = {{ telegraf_debug_enabled }}
logfile = ""
logtarget = "file"
logfile = "/app/log/telegraf.log"
logfile_rotation_max_size = "10MB"
logfile_rotation_max_archives = 5
hostname = "{{ hostname }}"
omit_hostname = false

Expand Down Expand Up @@ -377,11 +380,11 @@

## The file will be rotated after the time interval specified. When set
## to 0 no time based rotation is performed.
rotation_interval = "12h"
# rotation_interval = "12h"

## The logfile will be rotated when it becomes larger than the specified
## size. When set to 0 no size based rotation is performed.
# rotation_max_size = "0MB"
rotation_max_size = "10MB"

## Maximum number of rotated archives to keep, any older logs are deleted.
## If set to -1, no archives are removed.
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_java_tls10_11.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_security_properties_file(self):
MAJOR_VERSION_TEST_CASES = [
("8", 8),
("1.8.0", 8),
("8u332", 8),
("8u372", 8),
("11", 11),
("11.0.15", 11),
("7", ""),
Expand Down

0 comments on commit 0b8723b

Please sign in to comment.