Browse Source

Final review fixes.

pull/3055/head
Dariusz Komosinski 7 years ago
parent
commit
d2dbc12ee8
  1. 36
      src/Avalonia.Base/AvaloniaObject.cs

36
src/Avalonia.Base/AvaloniaObject.cs

@ -333,17 +333,12 @@ namespace Avalonia
throw new ArgumentException($"The property {property.Name} is readonly."); throw new ArgumentException($"The property {property.Name} is readonly.");
} }
if (Logger.TryGet(LogEventLevel.Verbose, out var logger)) Logger.TryGet(LogEventLevel.Verbose)?.Log(
{ LogArea.Property,
var description = GetDescription(source); this,
"Bound {Property} to {Binding} with priority LocalValue",
logger.Log( property,
LogArea.Property, GetDescription(source));
this,
"Bound {Property} to {Binding} with priority LocalValue",
property,
description);
}
if (_directBindings == null) if (_directBindings == null)
{ {
@ -354,18 +349,13 @@ namespace Avalonia
} }
else else
{ {
if (Logger.TryGet(LogEventLevel.Verbose, out var logger)) Logger.TryGet(LogEventLevel.Verbose)?.Log(
{ LogArea.Property,
var description = GetDescription(source); this,
"Bound {Property} to {Binding} with priority {Priority}",
logger.Log( property,
LogArea.Property, GetDescription(source),
this, priority);
"Bound {Property} to {Binding} with priority {Priority}",
property,
description,
priority);
}
return Values.AddBinding(property, source, priority); return Values.AddBinding(property, source, priority);
} }

Loading…
Cancel
Save