From 468ef4ad3cc99fa77801f1d2cc3d5fce099a1bd4 Mon Sep 17 00:00:00 2001 From: Jamie Pine <32987599+jamiepine@users.noreply.github.com> Date: Sat, 5 Mar 2022 23:04:17 -0800 Subject: [PATCH] fix location log --- packages/core/src/library/locations.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/src/library/locations.rs b/packages/core/src/library/locations.rs index 5af5969fb..a6e671442 100644 --- a/packages/core/src/library/locations.rs +++ b/packages/core/src/library/locations.rs @@ -101,11 +101,7 @@ pub async fn create_location(path: &str) -> Result Location::is_root_filesystem().set(false), // remove this Location::is_online().set(true), ]; - create_location_params.extend(vec![ - Location::path().set(path.to_string()), - // Location::library_id().set(library.id), - ]); - info!("Created new location: {:?}", location); + create_location_params.extend(vec![Location::path().set(path.to_string())]); create_location_params }; @@ -114,6 +110,7 @@ pub async fn create_location(path: &str) -> Result .create_one(create_location_params) .exec() .await; + info!("Created location: {:?}", location); // write a file called .spacedrive to path containing the location id in JSON format let mut dotfile = match fs::File::create(format!("{}/{}", path.clone(), DOTFILE_NAME)) {