mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
bpftop: update to 0.5.2.
This commit is contained in:
parent
0b29885fe3
commit
e779ca5ac8
2 changed files with 2 additions and 36 deletions
|
@ -1,34 +0,0 @@
|
||||||
From a9a121a0aa0fde095099db03651d83aaf0cbcbc5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jose Fernandez <josef@netflix.com>
|
|
||||||
Date: Mon, 20 May 2024 21:57:28 -0600
|
|
||||||
Subject: [PATCH] Do not error out if journald is not available
|
|
||||||
|
|
||||||
When journald is not available, the program should not error out, but
|
|
||||||
instead make noop log entries.
|
|
||||||
|
|
||||||
Signed-off-by: Jose Fernandez <josef@netflix.com>
|
|
||||||
---
|
|
||||||
src/main.rs | 8 +++++++-
|
|
||||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/main.rs b/src/main.rs
|
|
||||||
index 00fc067..d95a4c1 100755
|
|
||||||
--- a/src/main.rs
|
|
||||||
+++ b/src/main.rs
|
|
||||||
@@ -118,9 +118,15 @@ fn main() -> Result<()> {
|
|
||||||
return Err(anyhow!("This program must be run as root"));
|
|
||||||
}
|
|
||||||
|
|
||||||
+ // Initialize the journald layer or ignore if not available
|
|
||||||
+ let journald_layer = match tracing_journald::layer() {
|
|
||||||
+ Ok(layer) => Some(layer),
|
|
||||||
+ Err(_) => None,
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
// Initialize the tracing subscriber with the journald layer
|
|
||||||
let registry = tracing_subscriber::registry()
|
|
||||||
- .with(tracing_journald::layer()?)
|
|
||||||
+ .with(journald_layer)
|
|
||||||
.with(tracing_subscriber::filter::LevelFilter::INFO);
|
|
||||||
// Try to set this subscriber as the global default
|
|
||||||
registry.try_init()?;
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'bpftop'
|
# Template file for 'bpftop'
|
||||||
pkgname=bpftop
|
pkgname=bpftop
|
||||||
version=0.5.1
|
version=0.5.2
|
||||||
revision=1
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
hostmakedepends="clang elfutils-devel pkg-config"
|
hostmakedepends="clang elfutils-devel pkg-config"
|
||||||
|
@ -10,4 +10,4 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/Netflix/bpftop"
|
homepage="https://github.com/Netflix/bpftop"
|
||||||
distfiles="https://github.com/Netflix/bpftop/archive/refs/tags/v${version}.tar.gz"
|
distfiles="https://github.com/Netflix/bpftop/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=8457caf5ededba38aad01ed6317bd737a8079bbb26ca9a79cfdca5848a8c80f6
|
checksum=d941314d8716f22d009a031de30edc92586cd434646bf2d2eb14c0a42e94bc95
|
||||||
|
|
Loading…
Add table
Reference in a new issue