Skip to content

Commit

Permalink
fix log levels on log file
Browse files Browse the repository at this point in the history
  • Loading branch information
ahau-square committed Jan 8, 2025
1 parent a25ed46 commit f646c13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/goose-server/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub fn setup_logging() -> Result<()> {
// Set default levels for different modules
EnvFilter::new("")
// Set goose module to INFO only
.add_directive("goose=info".parse().unwrap())
.add_directive("goose=debug".parse().unwrap())
// Set goose-server to INFO
.add_directive("goose_server=info".parse().unwrap())
// Set tower-http to INFO for request logging
Expand All @@ -79,8 +79,8 @@ pub fn setup_logging() -> Result<()> {

// Build the subscriber with required layers
let subscriber = Registry::default()
.with(file_layer)
.with(console_layer.with_filter(env_filter));
.with(file_layer.with_filter(env_filter))
.with(console_layer.with_filter(LevelFilter::INFO));

// Initialize with Langfuse if available
if let Some(langfuse) = langfuse_layer::create_langfuse_observer() {
Expand Down

0 comments on commit f646c13

Please sign in to comment.