From 4a4dff8c225dc3d17fafb5c8aa60fb638f884083 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 30 Dec 2023 00:41:40 +0100 Subject: [PATCH] Add logging dependencies --- Cargo.lock | 21 +++++++++++++++++++++ Cargo.toml | 6 ++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4a23cd0..620e36d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -49,12 +49,14 @@ dependencies = [ "confy", "lemmy_api_common", "lemmy_db_schema", + "log", "once_cell", "reqwest", "serde", "serde_derive", "serde_json", "strum_macros", + "systemd-journal-logger", "tokio", "toml 0.8.8", "url", @@ -715,6 +717,9 @@ name = "log" version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +dependencies = [ + "value-bag", +] [[package]] name = "memchr" @@ -1209,6 +1214,16 @@ dependencies = [ "libc", ] +[[package]] +name = "systemd-journal-logger" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5f3848dd723f2a54ac1d96da793b32923b52de8dfcced8722516dac312a5b2a" +dependencies = [ + "log", + "rustix", +] + [[package]] name = "tempfile" version = "3.8.1" @@ -1487,6 +1502,12 @@ dependencies = [ "serde", ] +[[package]] +name = "value-bag" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a72e1902dde2bd6441347de2b70b7f5d59bf157c6c62f0c44572607a1d55bbe" + [[package]] name = "vcpkg" version = "0.2.15" diff --git a/Cargo.toml b/Cargo.toml index 49d915d..32ecc63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,5 +27,7 @@ serde_json = "^1.0.97" strum_macros = "^0.25.0" tokio = { version = "^1.32.0", features = ["rt", "rt-multi-thread", "macros"] } url = "^2.4.0" -confy = "0.5.1" -toml = "0.8.8" +confy = "^0.5.1" +toml = "^0.8.8" +systemd-journal-logger = "^2.1.1" +log = "^0.4.20" \ No newline at end of file