avm1: Replace avm_warn! with tracing::warn!

This commit is contained in:
sleepycatcoding 2023-08-02 14:27:01 +03:00 committed by Nathan Adams
parent 01801980f4
commit e4b7cc2afd
1 changed files with 1 additions and 5 deletions

View File

@ -3,7 +3,6 @@ use crate::avm1::object::{NativeObject, Object};
use crate::avm1::property_decl::define_properties_on; use crate::avm1::property_decl::define_properties_on;
use crate::avm1::{property_decl::Declaration, ScriptObject}; use crate::avm1::{property_decl::Declaration, ScriptObject};
use crate::avm1::{Activation, Error, Executable, ExecutionReason, TObject, Value}; use crate::avm1::{Activation, Error, Executable, ExecutionReason, TObject, Value};
use crate::avm_warn;
use crate::context::{GcContext, UpdateContext}; use crate::context::{GcContext, UpdateContext};
use crate::display_object::TDisplayObject; use crate::display_object::TDisplayObject;
use crate::socket::SocketHandle; use crate::socket::SocketHandle;
@ -205,10 +204,7 @@ fn on_data<'gc>(
ExecutionReason::FunctionCall, ExecutionReason::FunctionCall,
)?; )?;
} else { } else {
avm_warn!( tracing::warn!("default XMLSocket.onData() received invalid XML; message ignored");
activation,
"default XMLSocket.onData() received invalid XML; message ignored"
);
} }
Ok(Value::Undefined) Ok(Value::Undefined)