Skip to content

Commit

Permalink
more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Jul 16, 2023
1 parent 1ca9060 commit 74cb73e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions server/src/api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ pub async fn post(
debug!("extract tar: {}", f.path().unwrap().display());
if f.path().unwrap() == Path::new("INFO") {
f.read_to_string(&mut info_contents).await?;
debug!("INFO: {}", &info_contents);
f.read_to_end(&mut to_sign).await?;
}
if f.path().unwrap() == Path::new("LICENSE") {
Expand Down Expand Up @@ -261,8 +262,11 @@ pub async fn post(
.replace("=\"No\"", "=false")
.replace("=\"NO\"", "=false");

debug!("INFO2: {}", &info_contents);
// serialise info file to a struct
let info: Info = toml::from_str(&info_contents).map_err(|_| actix_web::error::ParseError::Incomplete)?;
debug!("Info3: {:?}", &info);

let icon256path: std::path::PathBuf = tmp_dir.path().join("PACKAGE_ICON_256.PNG");
// move file
let _ = match filestorage::store_file(&info, filepath, icon256path).await {
Expand Down
2 changes: 1 addition & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async fn main() -> std::io::Result<()> {
//tsk = Some(temp_tsk);
pgp_key = Some(temp_key);
} else {
warn!("No signing key file found at '{}'. SPK Signing is disabled!", &*PGP_KEY_PATH);
info!("No signing key file found at '{}'. SPK Signing is disabled!", &*PGP_KEY_PATH);
}

let (cache_r, raw_cache_w) = evmap::new();
Expand Down

0 comments on commit 74cb73e

Please sign in to comment.