Skip to content

Commit 5a5b7e6

Browse files
authored
Don't log expected error on each guest function call (#662)
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 50c486e commit 5a5b7e6

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/hyperlight_common/src/flatbuffer_wrappers/guest_error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ impl GuestError {
196196

197197
impl TryFrom<&[u8]> for GuestError {
198198
type Error = Error;
199-
#[cfg_attr(feature = "tracing", instrument(err(Debug), skip_all, parent = Span::current(), level= "Trace"))]
200199
fn try_from(value: &[u8]) -> Result<Self> {
201200
let guest_error_fb = size_prefixed_root::<FbGuestError>(value)
202201
.map_err(|e| anyhow::anyhow!("Error while reading GuestError: {:?}", e))?;

src/hyperlight_host/src/mem/mgr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,6 @@ impl SandboxMemoryManager<HostSharedMemory> {
538538
}
539539

540540
/// Get the guest error data
541-
#[instrument(err(Debug), skip_all, parent = Span::current(), level= "Trace")]
542541
pub(crate) fn get_guest_error(&mut self) -> Result<GuestError> {
543542
self.shared_mem.try_pop_buffer_into::<GuestError>(
544543
self.layout.output_data_buffer_offset,

src/hyperlight_host/src/mem/shared_mem.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ impl HostSharedMemory {
919919
/// Pops the given given buffer into a `T` and returns it.
920920
/// NOTE! the data must be a size-prefixed flatbuffer, and
921921
/// buffer_start_offset must point to the beginning of the buffer
922-
#[instrument(err(Debug), skip_all, parent = Span::current(), level= "Trace")]
923922
pub fn try_pop_buffer_into<T>(
924923
&mut self,
925924
buffer_start_offset: usize,

0 commit comments

Comments
 (0)