logging: include version information
This commit is contained in:
parent
f35a7f691a
commit
14b344a1ae
5 changed files with 31 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ use {
|
|||
oserror::OsError, queue::AsyncQueue, refcounted::RefCounted, run_toplevel::RunToplevel,
|
||||
tri::Try,
|
||||
},
|
||||
version::VERSION,
|
||||
video::drm::wait_for_sync_obj::WaitForSyncObj,
|
||||
wheel::{Wheel, WheelError},
|
||||
xkbcommon::XkbContext,
|
||||
|
|
@ -122,6 +123,7 @@ fn start_compositor2(
|
|||
test_future: Option<TestFuture>,
|
||||
) -> Result<(), CompositorError> {
|
||||
log::info!("pid = {}", uapi::getpid());
|
||||
log::info!("version = {VERSION}");
|
||||
init_fd_limit();
|
||||
leaks::init();
|
||||
clientmem::init()?;
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ mod tree;
|
|||
mod udev;
|
||||
mod user_session;
|
||||
mod utils;
|
||||
mod version;
|
||||
mod video;
|
||||
mod wheel;
|
||||
mod wire;
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ use {
|
|||
run_toplevel::RunToplevel,
|
||||
xrd::xrd,
|
||||
},
|
||||
version::VERSION,
|
||||
video::dmabuf::DmaBufIds,
|
||||
wheel::Wheel,
|
||||
wire_dbus::org,
|
||||
|
|
@ -226,6 +227,7 @@ async fn init_dbus_session(dbus: &Dbus, logger: Arc<Logger>) -> Rc<DbusSocket> {
|
|||
Ok(r) if r.get().rv == DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER => {
|
||||
log::info!("Acquired unique name {}", UNIQUE_NAME);
|
||||
logger.redirect("portal");
|
||||
log::info!("version = {VERSION}");
|
||||
let fork = match fork_with_pidfd(false) {
|
||||
Ok(f) => f,
|
||||
Err(e) => fatal!("Could not fork: {}", ErrorFmt(e)),
|
||||
|
|
|
|||
1
src/version.rs
Normal file
1
src/version.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
include!(concat!(env!("OUT_DIR"), "/version.rs"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue