celeritas icon indicating copy to clipboard operation
celeritas copied to clipboard

Write only file basename to log messages

Open sethrj opened this issue 2 months ago • 0 comments

Full paths from the celeritas logger are nice when debugging but annoying in most cases due to obscuring the rest of the message. In accel/detail/LoggerImpl.cc we have a function to remove these paths at runtime, but it would be more sensible to have an option like this at compile time to (1) avoid having to use -ffile-prefix-map to the compiler to improve ccache behavior and (2) avoid having often arbitrary source paths compiled into the executable.

sethrj avatar Oct 13 '25 14:10 sethrj