Skip to content

Commit

Permalink
attest: change syslog name to worldcoin-attest (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah authored Aug 13, 2024
1 parent c9ec3f8 commit 7c31679
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orb-attest/debian/orb-attest.worldcoin-attest.service
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
7 changes: 5 additions & 2 deletions orb-attest/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 7c31679

Please sign in to comment.