c2pa-rs

A fork of https://github.com/contentauth/c2pa-rs/
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/c2pa-rs.git
Log | Files | Refs | README

commit 4669b58f9986d33579ff5723a4455814405403ed
parent a8a8cd5a7c401b0f16b12d4987d55ca1610ce824
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 22 Jun 2024 22:37:57 +0200

Replace log with tracing

Diffstat:
Msdk/Cargo.toml | 2+-
Msdk/src/ingredient.rs | 2+-
Msdk/src/jumbf/boxes.rs | 2+-
Msdk/src/manifest.rs | 2+-
Msdk/src/store.rs | 2+-
Msdk/src/utils/hash_utils.rs | 2+-
Msdk/src/utils/time_it.rs | 2+-
Msdk/src/utils/xmp_inmemory_utils.rs | 2+-
Msdk/src/validation_status.rs | 2+-
9 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml @@ -93,7 +93,6 @@ hex = "0.4.3" id3 = "=1.12.0" img-parts = "0.3.0" jfifdump = "0.5.1" -log = "0.4.8" lopdf = { version = "0.31.0", optional = true } lazy_static = "1.4.0" memchr = "2.7.1" @@ -126,6 +125,7 @@ uuid = { version = "1.3.1", features = ["serde", "v4", "wasm-bindgen"] } x509-parser = "0.15.1" x509-certificate = "0.19.0" zip = { version = "0.6.6", default-features = false } +tracing = "0.1.40" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] ureq = "2.4.0" diff --git a/sdk/src/ingredient.rs b/sdk/src/ingredient.rs @@ -16,7 +16,7 @@ use std::path::{Path, PathBuf}; use std::{borrow::Cow, io::Cursor}; -use log::{debug, error}; +use tracing::{debug, error}; #[cfg(feature = "json_schema")] use schemars::JsonSchema; use serde::{Deserialize, Serialize}; diff --git a/sdk/src/jumbf/boxes.rs b/sdk/src/jumbf/boxes.rs @@ -31,7 +31,7 @@ use std::{ use byteorder::{BigEndian, ReadBytesExt}; use hex::FromHex; -use log::debug; +use tracing::debug; use thiserror::Error; use crate::jumbf::{boxio, labels}; diff --git a/sdk/src/manifest.rs b/sdk/src/manifest.rs @@ -16,7 +16,7 @@ use std::{borrow::Cow, collections::HashMap, io::Cursor}; use std::{fs::create_dir_all, path::Path}; use async_generic::async_generic; -use log::{debug, error}; +use tracing::{debug, error}; #[cfg(feature = "json_schema")] use schemars::JsonSchema; use serde::{de::DeserializeOwned, Deserialize, Serialize}; diff --git a/sdk/src/store.rs b/sdk/src/store.rs @@ -19,7 +19,7 @@ use std::{ use std::{fs, path::Path}; use async_generic::async_generic; -use log::error; +use tracing::error; #[cfg(feature = "file_io")] use crate::jumbf_io::{ diff --git a/sdk/src/utils/hash_utils.rs b/sdk/src/utils/hash_utils.rs @@ -19,7 +19,7 @@ use std::{ }; //use conv::ValueFrom; -use log::warn; +use tracing::warn; // multihash versions use multibase::{decode, encode}; use multihash::{wrap, Code, Multihash, Sha1, Sha2_256, Sha2_512, Sha3_256, Sha3_384, Sha3_512}; diff --git a/sdk/src/utils/time_it.rs b/sdk/src/utils/time_it.rs @@ -13,7 +13,7 @@ use std::time::Instant; -use log::info; +use tracing::info; // (Internal debugging tool.) // Measure and log the time from the creation of this struct until it is dropped. diff --git a/sdk/src/utils/xmp_inmemory_utils.rs b/sdk/src/utils/xmp_inmemory_utils.rs @@ -17,7 +17,7 @@ use fast_xml::{ events::{BytesStart, Event}, Reader, Writer, }; -use log::error; +use tracing::error; use crate::{ asset_io::CAIRead, jumbf_io::get_cailoader_handler, utils::hash_utils::vec_compare, Error, diff --git a/sdk/src/validation_status.rs b/sdk/src/validation_status.rs @@ -17,7 +17,7 @@ #![deny(missing_docs)] -use log::debug; +use tracing::debug; #[cfg(feature = "json_schema")] use schemars::JsonSchema; use serde::{Deserialize, Serialize};