Skip to content

Commit

Permalink
fix(application): improve logging, add correct version to Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed May 16, 2024
1 parent b614cc6 commit a996824
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "doclytics"
version = "0.1.0"
version = "1.1.4-rc.9"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion src/llm_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub async fn generate_response(
.await;
match res {
Ok(res) => {
slog_scope::debug!("Response from ollama {}", res.response);
slog_scope::debug!("Response from ollama:\n {}", res.response);
Ok(res)
},
Err(e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async fn process_documents(client: &Client, ollama: &Ollama, model: &str, base_u
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
logger::init(); // Initializes the global logger
slog_scope::info!("Application started {}", "!");
slog_scope::info!("Application started, version: {}", env!("CARGO_PKG_VERSION"));
let token = env::var("PAPERLESS_TOKEN").expect("PAPERLESS_TOKEN is not set in .env file");
let base_url = env::var("PAPERLESS_BASE_URL").expect("PAPERLESS_BASE_URL is not set in .env file");
let client = init_paperless_client(&token);
Expand Down

0 comments on commit a996824

Please sign in to comment.