Nicer log output

timeout_old
Tassilo Horn 3 years ago
parent 78e4cd1d81
commit e2565db9bc
  1. 6
      README.md
  2. 4
      src/layout.rs

@ -172,8 +172,10 @@ exec env RUST_BACKTRACE=1 RUST_LOG=swayr=debug swayrd > /tmp/swayrd.log 2>&1
The setting of `RUST_BACKTRACE=1`, `RUST_LOG=swayr=debug` and the redirection The setting of `RUST_BACKTRACE=1`, `RUST_LOG=swayr=debug` and the redirection
of the output to some logfile is optional but helps a lot when something of the output to some logfile is optional but helps a lot when something
doesn't work. Especially, if you encounter a crash in certain situations and doesn't work. Especially, if you encounter a crash in certain situations and
you want to report a bug, it would be utmost helpful if you could reproduce you want to report a bug, it would be utmost helpful if you could reproduce the
the issue with backtrace and logging and attach that to your bug report. issue with backtrace and logging at the `debug` level and attach that to your
bug report. (Valid log levels are: `trace`, `debug`, `info`, `warn`, `error`,
`off`.)
Next to starting the demon, you want to bind swayr commands to some keys like Next to starting the demon, you want to bind swayr commands to some keys like
so: so:

@ -121,13 +121,13 @@ pub fn auto_tile(res_to_min_width: &HashMap<i32, i32>) {
pub fn maybe_auto_tile(config: &config::Config) { pub fn maybe_auto_tile(config: &config::Config) {
if config.is_layout_auto_tile() { if config.is_layout_auto_tile() {
log::debug!("\nauto_tile: start"); log::debug!("auto_tile: start");
auto_tile( auto_tile(
&config &config
.get_layout_auto_tile_min_window_width_per_output_width_as_map( .get_layout_auto_tile_min_window_width_per_output_width_as_map(
), ),
); );
log::debug!("auto_tile: end\n"); log::debug!("auto_tile: end");
} }
} }

Loading…
Cancel
Save