Skip to content

Commit

Permalink
feat: improve port forward connections and adjust some http logs actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hcavarsan committed Jun 10, 2024
1 parent 7c587c8 commit 5b97fc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/kftray-tauri/src/kubeforward/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ use serde_json::Value;
use tokio::sync::Mutex;

pub fn create_log_file_path(config_id: i64, local_port: u16) -> anyhow::Result<PathBuf> {
let mut path = PathBuf::from(std::env::var("HOME").unwrap_or_else(|_| ".".to_string()));
let mut path = dirs::home_dir().unwrap();

path.push(".kftray/http_logs");
fs::create_dir_all(&path)?;
path.push(format!("{}_{}.log", config_id, local_port));
Expand Down

0 comments on commit 5b97fc8

Please sign in to comment.