Skip to content

Commit 8f472b1

Browse files
committed
ref(logger): print exit code
1 parent 572f787 commit 8f472b1

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ watchlua:
1818
cargo watch -x 'build -p libxbase' -w 'Cargo.toml' -w 'src' -w 'lua/xbase/Cargo.toml' -w 'lua/xbase/lib.rs' -c
1919

2020
watchdaemon:
21-
RUST_LOG="xbase=debug" cargo watch -x 'run --bin xbase-daemon --features=daemon' -w 'src' -w 'Cargo.toml' -c
21+
RUST_LOG="xbase=trace" cargo watch -x 'run --bin xbase-daemon --features=daemon' -w 'src' -w 'Cargo.toml' -c
2222

2323
watchserver:
2424
RUST_LOG="trace" cargo watch -x 'build --bin xbase-server --features=server' -w 'src' -w 'Cargo.toml' -c

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
## 👁 Overview
66

7-
Xcode replacement-ish development environment for neovim. Supports building/watching/running
7+
A work in progress Xcode replacement-ish development environment for neovim. Supports building/watching/running
88
xcode products, in addition to logging and auto-completion. It requires and recommends using
99
[XcodeGen] as a way to configure and generate xcode projects without interacting with Xcode.
1010

11-
It is still work in progress, if you have something in mind or found a bug open an issue.
1211

1312
## 🌝 Motivation
1413

src/daemon/requests/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ impl Watchable for BuildRequest {
6464
config.target
6565
));
6666

67+
tracing::trace!("building with [{}]", args.join(" "));
68+
6769
let success = build_with_logger(logger, root, &args, false, is_once).await?;
6870
if !success {
6971
let ref msg = format!("Failed: {} ", config.to_string());

src/nvim/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<'a> Logger<'a> {
4343

4444
// TODO(logger): always show current new logs in middle of the window
4545
pub async fn append(&mut self, msg: String) -> Result<()> {
46-
tracing::debug!("{msg}");
46+
tracing::trace!("{msg}");
4747
let win_info = self.win().await;
4848
let mut c = self.get_line_count().await?;
4949

src/xcode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ where
2626
while let Some(step) = stream.next().await {
2727
let line = match step {
2828
Exit(v) if v != 0 => {
29-
"[Error] Build Failed".into()
29+
format!("[Exit] {v}")
3030
}
31-
BuildSucceed | CleanSucceed | TestSucceed | TestFailed | BuildFailed => {
31+
BuildSucceed | CleanSucceed | TestSucceed | TestFailed => {
3232
continue;
3333
}
3434
step => step.to_string().trim().to_string(),

0 commit comments

Comments
 (0)