diff --git a/orb-attest/debian/orb-attest.worldcoin-attest.service b/orb-attest/debian/orb-attest.worldcoin-attest.service index d679214a..e60357a3 100644 --- a/orb-attest/debian/orb-attest.worldcoin-attest.service +++ b/orb-attest/debian/orb-attest.worldcoin-attest.service @@ -10,7 +10,7 @@ Type=simple User=worldcoin Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/worldcoin_bus_socket Environment=RUST_BACKTRACE=1 -SyslogIdentifier=orb-attest +SyslogIdentifier=worldcoin-attest Restart=on-failure ExecStart=/bin/bash -c 'ORB_ID=$(/usr/local/bin/orb-id) /usr/local/bin/orb-attest' diff --git a/orb-attest/src/logging.rs b/orb-attest/src/logging.rs index 956b2e2d..4e201a45 100644 --- a/orb-attest/src/logging.rs +++ b/orb-attest/src/logging.rs @@ -9,9 +9,12 @@ use tracing_subscriber::{ Layer, }; +const SYSLOG_IDENTIFIER: &str = "worldcoin-attest"; + fn try_init_journal() -> eyre::Result<()> { - let journal = - tracing_journald::layer().wrap_err("Failed to initialize journald logger")?; + let journal = tracing_journald::layer() + .wrap_err("Failed to initialize journald logger")? + .with_syslog_identifier(SYSLOG_IDENTIFIER.to_owned()); tracing_subscriber::registry().with(journal).try_init()?; Ok(()) }