commit | b7181a38c6b92bcb3b3cb17aa1f4c727987847dd | [log] [tgz] |
---|---|---|
author | Jan Kundrát <kundrat@cesnet.cz> | Thu Oct 31 12:40:23 2019 +0100 |
committer | Jan Kundrát <kundrat@cesnet.cz> | Thu Oct 31 12:53:57 2019 +0100 |
tree | f4d9e4c43a0ce2c5dcc5cc0b955a05b2fc59f7a7 | |
parent | f253845e2ab27d2e06d50848697e370180a26e71 [diff] |
improve logging This allows for substantially more space for the log in an attempt to actually capture more useful data. Also ensure that whatever gets printed to stdout/stderr, such as C++'s own exception handling, is considered very important and dropped by accident. Also relax the rate limit a bit; at least that ITMA polling on the coherent A/D box produces a ton of data, and the trace bucket for that service gets throttled. A `journalctl -f -u systemd-journald` running in parallel was very useful in debugging this. Change-Id: If18446c9ab6c928a16e4944f331279cef627a612 Depends-on: https://cesnet-gerrit-czechlight/c/CzechLight/cla-sysrepo/+/1992 Depends-on: https://gerrit.cesnet.cz/c/CzechLight/cla-sysrepo/+/1992
diff --git a/board/czechlight/clearfog/overlay/usr/lib/systemd/journald.conf.d/czechlight.conf b/board/czechlight/clearfog/overlay/usr/lib/systemd/journald.conf.d/czechlight.conf new file mode 100644 index 0000000..69514e4 --- /dev/null +++ b/board/czechlight/clearfog/overlay/usr/lib/systemd/journald.conf.d/czechlight.conf
@@ -0,0 +1,2 @@ +[Journal] +RuntimeMaxUse=200M
diff --git a/package/cla-sysrepo/cla-appliance.service.in b/package/cla-sysrepo/cla-appliance.service.in index 7ee5c31..c48bce3 100644 --- a/package/cla-sysrepo/cla-appliance.service.in +++ b/package/cla-sysrepo/cla-appliance.service.in
@@ -18,6 +18,9 @@ SystemCallArchitectures=native Restart=always WatchdogSec=15s +LogRateLimitIntervalSec=10 +LogRateLimitBurst=30000 +SyslogLevel=alert [Install] WantedBy=multi-user.target
diff --git a/submodules/cla-sysrepo b/submodules/cla-sysrepo index 17403f8..a0a4c4c 160000 --- a/submodules/cla-sysrepo +++ b/submodules/cla-sysrepo
@@ -1 +1 @@ -Subproject commit 17403f8f48da7ad40276179e3f9938e13aae772e +Subproject commit a0a4c4cc8fd44837759dfc46fbf74c3d3479bd16