feat: add procfs
This commit is contained in:
@@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize};
|
||||
use serde_json::{json, Map, Value};
|
||||
use zeroize::Zeroize;
|
||||
|
||||
use crate::{db, jose};
|
||||
use crate::{db, jose, proc};
|
||||
use crate::db::Key;
|
||||
|
||||
type GenericError = Box<dyn std::error::Error + Send + Sync>;
|
||||
@@ -74,7 +74,8 @@ async fn response_requests(
|
||||
req: Request<Body>,
|
||||
_client: Client<HttpConnector>,
|
||||
) -> Result<Response<Body>> {
|
||||
information!("Receive request: {}, from: {}", req.uri(), remote_addr);
|
||||
let process = proc::get_process(remote_addr.port());
|
||||
information!("Receive request: {}, from: {}, process: {:?}", req.uri(), remote_addr, process);
|
||||
match (req.method(), req.uri().path()) {
|
||||
(&Method::POST, "/init") => init(req).await,
|
||||
(&Method::POST, "/update") => update().await,
|
||||
|
||||
Reference in New Issue
Block a user