Skip to content

Commit

Permalink
AS: Add error log print
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Nov 16, 2024
1 parent 5146c40 commit 1680018
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion attestation-service/src/bin/restful/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::{anyhow, bail, Context};
use attestation_service::{AttestationService, HashAlgorithm};
use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine};
use kbs_types::Tee;
use log::{debug, info};
use log::{debug, error, info};
use serde::{Deserialize, Serialize};
use serde_json::{json, Value};
use strum::AsRefStr;
Expand All @@ -22,6 +22,7 @@ impl ResponseError for Error {
fn error_response(&self) -> HttpResponse {
let body = format!("{self:#?}");

error!("{self:#?}");
let mut res = match self {
Error::InternalError(_) => HttpResponse::InternalServerError(),
// _ => HttpResponse::NotImplemented(),
Expand Down

0 comments on commit 1680018

Please sign in to comment.