mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Switch from error! and println! to warn!, and set the default log level to warn on debug builds.
This commit is contained in:
parent
d7d6979144
commit
ae87b8a910
6 changed files with 26 additions and 26 deletions
|
@ -610,15 +610,11 @@ impl ${style_struct.gecko_struct_name} {
|
|||
% for longhand in stub_longhands:
|
||||
#[allow(non_snake_case)]
|
||||
pub fn set_${longhand.ident}(&mut self, _: longhands::${longhand.ident}::computed_value::T) {
|
||||
if cfg!(debug_assertions) {
|
||||
println!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
}
|
||||
warn!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
}
|
||||
#[allow(non_snake_case)]
|
||||
pub fn copy_${longhand.ident}_from(&mut self, _: &Self) {
|
||||
if cfg!(debug_assertions) {
|
||||
println!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
}
|
||||
warn!("stylo: Unimplemented property setter: ${longhand.name}");
|
||||
}
|
||||
% if longhand.need_clone:
|
||||
#[allow(non_snake_case)]
|
||||
|
@ -2628,7 +2624,7 @@ clip-path
|
|||
clip_path.mType = StyleShapeSourceType::None;
|
||||
|
||||
match v {
|
||||
ShapeSource::Url(..) => println!("stylo: clip-path: url() not yet implemented"),
|
||||
ShapeSource::Url(..) => warn!("stylo: clip-path: url() not yet implemented"),
|
||||
ShapeSource::None => {} // don't change the type
|
||||
ShapeSource::Box(reference) => {
|
||||
clip_path.mReferenceBox = reference.into();
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
% if allow_empty:
|
||||
try!(dest.write_str("none"));
|
||||
% else:
|
||||
error!("Found empty value for property ${name}");
|
||||
warn!("Found empty value for property ${name}");
|
||||
% endif
|
||||
}
|
||||
for i in iter {
|
||||
|
@ -146,7 +146,7 @@
|
|||
% if allow_empty:
|
||||
try!(dest.write_str("none"));
|
||||
% else:
|
||||
error!("Found empty value for property ${name}");
|
||||
warn!("Found empty value for property ${name}");
|
||||
% endif
|
||||
}
|
||||
for i in iter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue