Skip to content

Commit 7f05183

Browse files
Copilotyiwang
andcommitted
fix(gen): redirect tracing to stderr and add LocalGPT label on responses
Co-authored-by: yiwang <142937+yiwang@users.noreply.github.com>
1 parent e544a20 commit 7f05183

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/gen/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fn main() -> Result<()> {
3939
tracing_subscriber::EnvFilter::try_from_default_env()
4040
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new(log_level)),
4141
)
42+
.with_writer(std::io::stderr)
4243
.init();
4344

4445
// Load config early so both Bevy and agent threads can use it
@@ -144,7 +145,7 @@ async fn run_agent_loop(
144145
if let Some(prompt) = initial_prompt {
145146
println!("\n> {}", prompt);
146147
let response = agent.chat(&prompt).await?;
147-
println!("\n{}\n", response);
148+
println!("\nLocalGPT: {}\n", response);
148149
}
149150

150151
// Interactive loop
@@ -180,7 +181,7 @@ async fn run_agent_loop(
180181
}
181182

182183
let response = agent.chat(input).await?;
183-
println!("\n{}\n", response);
184+
println!("\nLocalGPT: {}\n", response);
184185
}
185186

186187
Ok(())

0 commit comments

Comments
 (0)