Skip to content

Commit

Permalink
qdrant logging (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall authored Dec 22, 2023
1 parent 6560200 commit 6ff7561
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apps/desktop/src-tauri/src/qdrant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{

use sentry::Level;
use tauri::{plugin::Plugin, Runtime};
use tracing::{error, warn};
use tracing::{error, info, warn};

use super::relative_command_path;

Expand Down Expand Up @@ -136,11 +136,14 @@ fn run_command(command: &Path, qdrant_dir: &Path, stdout: &Path, stderr: &Path)
match getrlimit(Resource::RLIMIT_NOFILE) {
Ok((current_soft, current_hard)) => {
let new_soft = current_hard.min(10000);
info!(current_soft, current_hard, "got rlimit/nofile");
if let Err(err) = setrlimit(Resource::RLIMIT_NOFILE, new_soft, current_hard) {
error!(
?err,
new_soft, current_soft, current_hard, "failed to set rlimit/nofile"
);
} else {
info!(new_soft, current_hard, "set rlimit/nofile");
}
}
Err(err) => {
Expand Down
3 changes: 2 additions & 1 deletion server/bleep/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ fn tracing_subscribe(config: &Configuration) -> bool {
Targets::new()
.with_target("bleep", LevelFilter::DEBUG)
.with_target("bleep::indexes::file", LevelFilter::WARN)
.with_target("bleep::semantic", LevelFilter::DEBUG),
.with_target("bleep::semantic", LevelFilter::DEBUG)
.with_target("bloop::qdrant", LevelFilter::INFO),
)
});

Expand Down

0 comments on commit 6ff7561

Please sign in to comment.