aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2024-02-25 15:27:54 +0100
committerFxQnLr <[email protected]>2024-02-25 15:27:54 +0100
commit91cd665671d564620bce13e693cd7ecaad697db9 (patch)
treed560273df2eece276cbda021cb4e95c044bb19df
parent9058f191b69ecafc8fdeace227ac113412d03888 (diff)
downloadwebol-91cd665671d564620bce13e693cd7ecaad697db9.tar
webol-91cd665671d564620bce13e693cd7ecaad697db9.tar.gz
webol-91cd665671d564620bce13e693cd7ecaad697db9.zip
Closes #11. Write log to file. Update deps
-rw-r--r--.gitignore3
-rw-r--r--Cargo.lock158
-rw-r--r--Cargo.toml1
-rw-r--r--src/main.rs4
4 files changed, 97 insertions, 69 deletions
diff --git a/.gitignore b/.gitignore
index 0fd9734..d8ed708 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,6 @@ target/
14config.* 14config.*
15 15
16.idea 16.idea
17
18logs/
19*.log
diff --git a/Cargo.lock b/Cargo.lock
index 5d10375..fcbf58a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -19,9 +19,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
19 19
20[[package]] 20[[package]]
21name = "ahash" 21name = "ahash"
22version = "0.8.8" 22version = "0.8.9"
23source = "registry+https://github.com/rust-lang/crates.io-index" 23source = "registry+https://github.com/rust-lang/crates.io-index"
24checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff" 24checksum = "d713b3834d76b85304d4d525563c1276e2e30dc97cc67bfb4585a4a29fc2c89f"
25dependencies = [ 25dependencies = [
26 "cfg-if", 26 "cfg-if",
27 "getrandom", 27 "getrandom",
@@ -53,7 +53,7 @@ checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9"
53dependencies = [ 53dependencies = [
54 "proc-macro2", 54 "proc-macro2",
55 "quote", 55 "quote",
56 "syn 2.0.48", 56 "syn 2.0.50",
57] 57]
58 58
59[[package]] 59[[package]]
@@ -148,7 +148,7 @@ dependencies = [
148 "heck", 148 "heck",
149 "proc-macro2", 149 "proc-macro2",
150 "quote", 150 "quote",
151 "syn 2.0.48", 151 "syn 2.0.50",
152] 152]
153 153
154[[package]] 154[[package]]
@@ -216,12 +216,9 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
216 216
217[[package]] 217[[package]]
218name = "cc" 218name = "cc"
219version = "1.0.83" 219version = "1.0.88"
220source = "registry+https://github.com/rust-lang/crates.io-index" 220source = "registry+https://github.com/rust-lang/crates.io-index"
221checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" 221checksum = "02f341c093d19155a6e41631ce5971aac4e9a868262212153124c15fa22d1cdc"
222dependencies = [
223 "libc",
224]
225 222
226[[package]] 223[[package]]
227name = "cfg-if" 224name = "cfg-if"
@@ -336,6 +333,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
336checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" 333checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5"
337 334
338[[package]] 335[[package]]
336name = "crossbeam-channel"
337version = "0.5.11"
338source = "registry+https://github.com/rust-lang/crates.io-index"
339checksum = "176dc175b78f56c0f321911d9c8eb2b77a78a4860b9c19db83835fea1a46649b"
340dependencies = [
341 "crossbeam-utils",
342]
343
344[[package]]
339name = "crossbeam-queue" 345name = "crossbeam-queue"
340version = "0.3.11" 346version = "0.3.11"
341source = "registry+https://github.com/rust-lang/crates.io-index" 347source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -682,9 +688,9 @@ dependencies = [
682 688
683[[package]] 689[[package]]
684name = "hermit-abi" 690name = "hermit-abi"
685version = "0.3.5" 691version = "0.3.8"
686source = "registry+https://github.com/rust-lang/crates.io-index" 692source = "registry+https://github.com/rust-lang/crates.io-index"
687checksum = "d0c62115964e08cb8039170eb33c1d0e2388a256930279edca206fff675f82c3" 693checksum = "379dada1584ad501b383485dd706b8afb7a70fcbc7f4da7d780638a5a6124a60"
688 694
689[[package]] 695[[package]]
690name = "hex" 696name = "hex"
@@ -767,9 +773,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
767 773
768[[package]] 774[[package]]
769name = "hyper" 775name = "hyper"
770version = "1.1.0" 776version = "1.2.0"
771source = "registry+https://github.com/rust-lang/crates.io-index" 777source = "registry+https://github.com/rust-lang/crates.io-index"
772checksum = "fb5aa53871fc917b1a9ed87b683a5d86db645e23acb32c2e0785a353e522fb75" 778checksum = "186548d73ac615b32a73aafe38fb4f56c0d340e110e5a200bcadbaf2e199263a"
773dependencies = [ 779dependencies = [
774 "bytes", 780 "bytes",
775 "futures-channel", 781 "futures-channel",
@@ -781,6 +787,7 @@ dependencies = [
781 "httpdate", 787 "httpdate",
782 "itoa", 788 "itoa",
783 "pin-project-lite", 789 "pin-project-lite",
790 "smallvec",
784 "tokio", 791 "tokio",
785] 792]
786 793
@@ -1119,9 +1126,9 @@ dependencies = [
1119 1126
1120[[package]] 1127[[package]]
1121name = "num_threads" 1128name = "num_threads"
1122version = "0.1.6" 1129version = "0.1.7"
1123source = "registry+https://github.com/rust-lang/crates.io-index" 1130source = "registry+https://github.com/rust-lang/crates.io-index"
1124checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" 1131checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9"
1125dependencies = [ 1132dependencies = [
1126 "libc", 1133 "libc",
1127] 1134]
@@ -1244,7 +1251,7 @@ dependencies = [
1244 "pest_meta", 1251 "pest_meta",
1245 "proc-macro2", 1252 "proc-macro2",
1246 "quote", 1253 "quote",
1247 "syn 2.0.48", 1254 "syn 2.0.50",
1248] 1255]
1249 1256
1250[[package]] 1257[[package]]
@@ -1275,7 +1282,7 @@ checksum = "266c042b60c9c76b8d53061e52b2e0d1116abc57cefc8c5cd671619a56ac3690"
1275dependencies = [ 1282dependencies = [
1276 "proc-macro2", 1283 "proc-macro2",
1277 "quote", 1284 "quote",
1278 "syn 2.0.48", 1285 "syn 2.0.50",
1279] 1286]
1280 1287
1281[[package]] 1288[[package]]
@@ -1313,9 +1320,9 @@ dependencies = [
1313 1320
1314[[package]] 1321[[package]]
1315name = "pkg-config" 1322name = "pkg-config"
1316version = "0.3.29" 1323version = "0.3.30"
1317source = "registry+https://github.com/rust-lang/crates.io-index" 1324source = "registry+https://github.com/rust-lang/crates.io-index"
1318checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb" 1325checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
1319 1326
1320[[package]] 1327[[package]]
1321name = "pnet_base" 1328name = "pnet_base"
@@ -1541,9 +1548,9 @@ checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4"
1541 1548
1542[[package]] 1549[[package]]
1543name = "ryu" 1550name = "ryu"
1544version = "1.0.16" 1551version = "1.0.17"
1545source = "registry+https://github.com/rust-lang/crates.io-index" 1552source = "registry+https://github.com/rust-lang/crates.io-index"
1546checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" 1553checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
1547 1554
1548[[package]] 1555[[package]]
1549name = "scopeguard" 1556name = "scopeguard"
@@ -1553,29 +1560,29 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
1553 1560
1554[[package]] 1561[[package]]
1555name = "serde" 1562name = "serde"
1556version = "1.0.196" 1563version = "1.0.197"
1557source = "registry+https://github.com/rust-lang/crates.io-index" 1564source = "registry+https://github.com/rust-lang/crates.io-index"
1558checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" 1565checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
1559dependencies = [ 1566dependencies = [
1560 "serde_derive", 1567 "serde_derive",
1561] 1568]
1562 1569
1563[[package]] 1570[[package]]
1564name = "serde_derive" 1571name = "serde_derive"
1565version = "1.0.196" 1572version = "1.0.197"
1566source = "registry+https://github.com/rust-lang/crates.io-index" 1573source = "registry+https://github.com/rust-lang/crates.io-index"
1567checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" 1574checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
1568dependencies = [ 1575dependencies = [
1569 "proc-macro2", 1576 "proc-macro2",
1570 "quote", 1577 "quote",
1571 "syn 2.0.48", 1578 "syn 2.0.50",
1572] 1579]
1573 1580
1574[[package]] 1581[[package]]
1575name = "serde_json" 1582name = "serde_json"
1576version = "1.0.113" 1583version = "1.0.114"
1577source = "registry+https://github.com/rust-lang/crates.io-index" 1584source = "registry+https://github.com/rust-lang/crates.io-index"
1578checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" 1585checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0"
1579dependencies = [ 1586dependencies = [
1580 "itoa", 1587 "itoa",
1581 "ryu", 1588 "ryu",
@@ -1671,12 +1678,12 @@ checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7"
1671 1678
1672[[package]] 1679[[package]]
1673name = "socket2" 1680name = "socket2"
1674version = "0.5.5" 1681version = "0.5.6"
1675source = "registry+https://github.com/rust-lang/crates.io-index" 1682source = "registry+https://github.com/rust-lang/crates.io-index"
1676checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" 1683checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871"
1677dependencies = [ 1684dependencies = [
1678 "libc", 1685 "libc",
1679 "windows-sys 0.48.0", 1686 "windows-sys 0.52.0",
1680] 1687]
1681 1688
1682[[package]] 1689[[package]]
@@ -1962,9 +1969,9 @@ dependencies = [
1962 1969
1963[[package]] 1970[[package]]
1964name = "syn" 1971name = "syn"
1965version = "2.0.48" 1972version = "2.0.50"
1966source = "registry+https://github.com/rust-lang/crates.io-index" 1973source = "registry+https://github.com/rust-lang/crates.io-index"
1967checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" 1974checksum = "74f1bdc9872430ce9b75da68329d1c1746faf50ffac5f19e02b71e37ff881ffb"
1968dependencies = [ 1975dependencies = [
1969 "proc-macro2", 1976 "proc-macro2",
1970 "quote", 1977 "quote",
@@ -2006,14 +2013,14 @@ checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81"
2006dependencies = [ 2013dependencies = [
2007 "proc-macro2", 2014 "proc-macro2",
2008 "quote", 2015 "quote",
2009 "syn 2.0.48", 2016 "syn 2.0.50",
2010] 2017]
2011 2018
2012[[package]] 2019[[package]]
2013name = "thread_local" 2020name = "thread_local"
2014version = "1.1.7" 2021version = "1.1.8"
2015source = "registry+https://github.com/rust-lang/crates.io-index" 2022source = "registry+https://github.com/rust-lang/crates.io-index"
2016checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" 2023checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c"
2017dependencies = [ 2024dependencies = [
2018 "cfg-if", 2025 "cfg-if",
2019 "once_cell", 2026 "once_cell",
@@ -2101,7 +2108,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
2101dependencies = [ 2108dependencies = [
2102 "proc-macro2", 2109 "proc-macro2",
2103 "quote", 2110 "quote",
2104 "syn 2.0.48", 2111 "syn 2.0.50",
2105] 2112]
2106 2113
2107[[package]] 2114[[package]]
@@ -2164,9 +2171,9 @@ dependencies = [
2164 2171
2165[[package]] 2172[[package]]
2166name = "toml_edit" 2173name = "toml_edit"
2167version = "0.22.4" 2174version = "0.22.6"
2168source = "registry+https://github.com/rust-lang/crates.io-index" 2175source = "registry+https://github.com/rust-lang/crates.io-index"
2169checksum = "0c9ffdf896f8daaabf9b66ba8e77ea1ed5ed0f72821b398aba62352e95062951" 2176checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6"
2170dependencies = [ 2177dependencies = [
2171 "indexmap", 2178 "indexmap",
2172 "serde", 2179 "serde",
@@ -2216,6 +2223,18 @@ dependencies = [
2216] 2223]
2217 2224
2218[[package]] 2225[[package]]
2226name = "tracing-appender"
2227version = "0.2.3"
2228source = "registry+https://github.com/rust-lang/crates.io-index"
2229checksum = "3566e8ce28cc0a3fe42519fc80e6b4c943cc4c8cef275620eb8dac2d3d4e06cf"
2230dependencies = [
2231 "crossbeam-channel",
2232 "thiserror",
2233 "time",
2234 "tracing-subscriber",
2235]
2236
2237[[package]]
2219name = "tracing-attributes" 2238name = "tracing-attributes"
2220version = "0.1.27" 2239version = "0.1.27"
2221source = "registry+https://github.com/rust-lang/crates.io-index" 2240source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2223,7 +2242,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
2223dependencies = [ 2242dependencies = [
2224 "proc-macro2", 2243 "proc-macro2",
2225 "quote", 2244 "quote",
2226 "syn 2.0.48", 2245 "syn 2.0.50",
2227] 2246]
2228 2247
2229[[package]] 2248[[package]]
@@ -2321,9 +2340,9 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
2321 2340
2322[[package]] 2341[[package]]
2323name = "unicode-normalization" 2342name = "unicode-normalization"
2324version = "0.1.22" 2343version = "0.1.23"
2325source = "registry+https://github.com/rust-lang/crates.io-index" 2344source = "registry+https://github.com/rust-lang/crates.io-index"
2326checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" 2345checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
2327dependencies = [ 2346dependencies = [
2328 "tinyvec", 2347 "tinyvec",
2329] 2348]
@@ -2416,6 +2435,7 @@ dependencies = [
2416 "time", 2435 "time",
2417 "tokio", 2436 "tokio",
2418 "tracing", 2437 "tracing",
2438 "tracing-appender",
2419 "tracing-subscriber", 2439 "tracing-subscriber",
2420 "uuid", 2440 "uuid",
2421] 2441]
@@ -2463,7 +2483,7 @@ version = "0.52.0"
2463source = "registry+https://github.com/rust-lang/crates.io-index" 2483source = "registry+https://github.com/rust-lang/crates.io-index"
2464checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 2484checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
2465dependencies = [ 2485dependencies = [
2466 "windows-targets 0.52.0", 2486 "windows-targets 0.52.3",
2467] 2487]
2468 2488
2469[[package]] 2489[[package]]
@@ -2483,17 +2503,17 @@ dependencies = [
2483 2503
2484[[package]] 2504[[package]]
2485name = "windows-targets" 2505name = "windows-targets"
2486version = "0.52.0" 2506version = "0.52.3"
2487source = "registry+https://github.com/rust-lang/crates.io-index" 2507source = "registry+https://github.com/rust-lang/crates.io-index"
2488checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" 2508checksum = "d380ba1dc7187569a8a9e91ed34b8ccfc33123bbacb8c0aed2d1ad7f3ef2dc5f"
2489dependencies = [ 2509dependencies = [
2490 "windows_aarch64_gnullvm 0.52.0", 2510 "windows_aarch64_gnullvm 0.52.3",
2491 "windows_aarch64_msvc 0.52.0", 2511 "windows_aarch64_msvc 0.52.3",
2492 "windows_i686_gnu 0.52.0", 2512 "windows_i686_gnu 0.52.3",
2493 "windows_i686_msvc 0.52.0", 2513 "windows_i686_msvc 0.52.3",
2494 "windows_x86_64_gnu 0.52.0", 2514 "windows_x86_64_gnu 0.52.3",
2495 "windows_x86_64_gnullvm 0.52.0", 2515 "windows_x86_64_gnullvm 0.52.3",
2496 "windows_x86_64_msvc 0.52.0", 2516 "windows_x86_64_msvc 0.52.3",
2497] 2517]
2498 2518
2499[[package]] 2519[[package]]
@@ -2504,9 +2524,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
2504 2524
2505[[package]] 2525[[package]]
2506name = "windows_aarch64_gnullvm" 2526name = "windows_aarch64_gnullvm"
2507version = "0.52.0" 2527version = "0.52.3"
2508source = "registry+https://github.com/rust-lang/crates.io-index" 2528source = "registry+https://github.com/rust-lang/crates.io-index"
2509checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" 2529checksum = "68e5dcfb9413f53afd9c8f86e56a7b4d86d9a2fa26090ea2dc9e40fba56c6ec6"
2510 2530
2511[[package]] 2531[[package]]
2512name = "windows_aarch64_msvc" 2532name = "windows_aarch64_msvc"
@@ -2516,9 +2536,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
2516 2536
2517[[package]] 2537[[package]]
2518name = "windows_aarch64_msvc" 2538name = "windows_aarch64_msvc"
2519version = "0.52.0" 2539version = "0.52.3"
2520source = "registry+https://github.com/rust-lang/crates.io-index" 2540source = "registry+https://github.com/rust-lang/crates.io-index"
2521checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" 2541checksum = "8dab469ebbc45798319e69eebf92308e541ce46760b49b18c6b3fe5e8965b30f"
2522 2542
2523[[package]] 2543[[package]]
2524name = "windows_i686_gnu" 2544name = "windows_i686_gnu"
@@ -2528,9 +2548,9 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
2528 2548
2529[[package]] 2549[[package]]
2530name = "windows_i686_gnu" 2550name = "windows_i686_gnu"
2531version = "0.52.0" 2551version = "0.52.3"
2532source = "registry+https://github.com/rust-lang/crates.io-index" 2552source = "registry+https://github.com/rust-lang/crates.io-index"
2533checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" 2553checksum = "2a4e9b6a7cac734a8b4138a4e1044eac3404d8326b6c0f939276560687a033fb"
2534 2554
2535[[package]] 2555[[package]]
2536name = "windows_i686_msvc" 2556name = "windows_i686_msvc"
@@ -2540,9 +2560,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
2540 2560
2541[[package]] 2561[[package]]
2542name = "windows_i686_msvc" 2562name = "windows_i686_msvc"
2543version = "0.52.0" 2563version = "0.52.3"
2544source = "registry+https://github.com/rust-lang/crates.io-index" 2564source = "registry+https://github.com/rust-lang/crates.io-index"
2545checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" 2565checksum = "28b0ec9c422ca95ff34a78755cfa6ad4a51371da2a5ace67500cf7ca5f232c58"
2546 2566
2547[[package]] 2567[[package]]
2548name = "windows_x86_64_gnu" 2568name = "windows_x86_64_gnu"
@@ -2552,9 +2572,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
2552 2572
2553[[package]] 2573[[package]]
2554name = "windows_x86_64_gnu" 2574name = "windows_x86_64_gnu"
2555version = "0.52.0" 2575version = "0.52.3"
2556source = "registry+https://github.com/rust-lang/crates.io-index" 2576source = "registry+https://github.com/rust-lang/crates.io-index"
2557checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" 2577checksum = "704131571ba93e89d7cd43482277d6632589b18ecf4468f591fbae0a8b101614"
2558 2578
2559[[package]] 2579[[package]]
2560name = "windows_x86_64_gnullvm" 2580name = "windows_x86_64_gnullvm"
@@ -2564,9 +2584,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
2564 2584
2565[[package]] 2585[[package]]
2566name = "windows_x86_64_gnullvm" 2586name = "windows_x86_64_gnullvm"
2567version = "0.52.0" 2587version = "0.52.3"
2568source = "registry+https://github.com/rust-lang/crates.io-index" 2588source = "registry+https://github.com/rust-lang/crates.io-index"
2569checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" 2589checksum = "42079295511643151e98d61c38c0acc444e52dd42ab456f7ccfd5152e8ecf21c"
2570 2590
2571[[package]] 2591[[package]]
2572name = "windows_x86_64_msvc" 2592name = "windows_x86_64_msvc"
@@ -2576,15 +2596,15 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
2576 2596
2577[[package]] 2597[[package]]
2578name = "windows_x86_64_msvc" 2598name = "windows_x86_64_msvc"
2579version = "0.52.0" 2599version = "0.52.3"
2580source = "registry+https://github.com/rust-lang/crates.io-index" 2600source = "registry+https://github.com/rust-lang/crates.io-index"
2581checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" 2601checksum = "0770833d60a970638e989b3fa9fd2bb1aaadcf88963d1659fd7d9990196ed2d6"
2582 2602
2583[[package]] 2603[[package]]
2584name = "winnow" 2604name = "winnow"
2585version = "0.5.39" 2605version = "0.6.2"
2586source = "registry+https://github.com/rust-lang/crates.io-index" 2606source = "registry+https://github.com/rust-lang/crates.io-index"
2587checksum = "5389a154b01683d28c77f8f68f49dea75f0a4da32557a58f68ee51ebba472d29" 2607checksum = "7a4191c47f15cc3ec71fcb4913cb83d58def65dd3787610213c649283b5ce178"
2588dependencies = [ 2608dependencies = [
2589 "memchr", 2609 "memchr",
2590] 2610]
@@ -2615,7 +2635,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
2615dependencies = [ 2635dependencies = [
2616 "proc-macro2", 2636 "proc-macro2",
2617 "quote", 2637 "quote",
2618 "syn 2.0.48", 2638 "syn 2.0.50",
2619] 2639]
2620 2640
2621[[package]] 2641[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index c320da1..8a86115 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,3 +23,4 @@ color-eyre = "0.6"
23thiserror = "1.0" 23thiserror = "1.0"
24ipnetwork = "0.20.0" 24ipnetwork = "0.20.0"
25mac_address = { version = "1.1.5", features = ["serde"] } 25mac_address = { version = "1.1.5", features = ["serde"] }
26tracing-appender = "0.2.3"
diff --git a/src/main.rs b/src/main.rs
index eae89f6..d17984f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -33,7 +33,11 @@ async fn main() -> color_eyre::eyre::Result<()> {
33 time::macros::format_description!("[year]-[month]-[day] [hour]:[minute]:[second]"); 33 time::macros::format_description!("[year]-[month]-[day] [hour]:[minute]:[second]");
34 let loc = UtcTime::new(time_format); 34 let loc = UtcTime::new(time_format);
35 35
36 let file_appender = tracing_appender::rolling::daily("logs", "webol.log");
37 let (non_blocking, _guard) = tracing_appender::non_blocking(file_appender);
38
36 tracing_subscriber::registry() 39 tracing_subscriber::registry()
40 .with(fmt::layer().with_writer(non_blocking).with_ansi(false))
37 .with(fmt::layer().with_timer(loc)) 41 .with(fmt::layer().with_timer(loc))
38 .with( 42 .with(
39 EnvFilter::builder() 43 EnvFilter::builder()