Skip to content

Commit ecea7f3

Browse files
committed
small log fixes
1 parent 667299f commit ecea7f3

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

.env.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ GEMINI_API_KEY=
3232
OPENROUTER_API_KEY=
3333

3434
## Ollama (if used, optional) ##
35-
# do not change this, it is used by Docker
36-
OLLAMA_HOST=http://host.docker.internal
35+
OLLAMA_HOST=http://localhost
3736
# you can change the port if you would like
3837
OLLAMA_PORT=11434
3938
# if "true", automatically pull models from Ollama

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ endif
77
###############################################################################
88
.PHONY: launch # | Run with INFO logs in release mode
99
launch:
10-
RUST_LOG=none,dkn_compute=info,dkn_workflows=info,dkn_p2p=info \
1110
cargo run --release --bin dkn-compute
1211

1312
.PHONY: run # | Run with INFO logs

compute/src/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ async fn main() -> Result<()> {
1616
.filter_module("dkn_workflows", log::LevelFilter::Info)
1717
.parse_default_env() // reads RUST_LOG variable
1818
.init();
19-
if let Err(e) = dotenv_result {
20-
log::warn!("could not load .env file: {}", e);
21-
}
2219

2320
log::info!(
2421
r#"
@@ -32,6 +29,12 @@ async fn main() -> Result<()> {
3229
"#
3330
);
3431

32+
// log about env usage
33+
match dotenv_result {
34+
Ok(path) => log::info!("Loaded .env file at: {}", path.display()),
35+
Err(e) => log::warn!("Could not load .env file: {}", e),
36+
}
37+
3538
// task tracker for multiple threads
3639
let task_tracker = TaskTracker::new();
3740
let cancellation = CancellationToken::new();

p2p/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ use super::DriaP2PCommander;
1717

1818
/// Peer-to-peer client for Dria Knowledge Network.
1919
pub struct DriaP2PClient {
20-
/// `Swarm` instance, everything is accesses through this one.
20+
/// `Swarm` instance, everything p2p-related are accessed through this instace.
2121
swarm: Swarm<DriaBehaviour>,
2222
/// Dria protocol, used for identifying the client.
2323
protocol: DriaP2PProtocol,
24-
/// Message sender / transmitter.
24+
/// Gossipsub message sender.
2525
msg_tx: mpsc::Sender<(PeerId, MessageId, Message)>,
2626
/// Command receiver.
2727
cmd_rx: mpsc::Receiver<DriaP2PCommand>,

workflows/src/apis/jina.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl JinaConfig {
4141
log::info!("Jina API key not found, skipping");
4242
return Ok(());
4343
};
44-
log::info!("Jina API key found {api_key}, checking service");
44+
log::info!("Jina API key found, checking service");
4545

4646
// make a dummy request to "example.com"
4747
let client = Client::new();

0 commit comments

Comments
 (0)