|
1 |
| -using Microsoft.Extensions.Logging; |
| 1 | +using Microsoft.Extensions.Logging; |
2 | 2 | using Newtonsoft.Json;
|
3 | 3 | using Newtonsoft.Json.Linq;
|
4 | 4 | using System;
|
@@ -41,12 +41,12 @@ public NestedContentValueConnector(IContentTypeService contentTypeService, Lazy<
|
41 | 41 |
|
42 | 42 | public string ToArtifact(object value, IPropertyType propertyType, ICollection<ArtifactDependency> dependencies)
|
43 | 43 | {
|
44 |
| - _logger.LogInformation("Converting {PropertyType} to artifact.", propertyType.Alias); |
| 44 | + _logger.LogDebug("Converting {PropertyType} to artifact.", propertyType.Alias); |
45 | 45 | var svalue = value as string;
|
46 | 46 |
|
47 | 47 | if (string.IsNullOrWhiteSpace(svalue))
|
48 | 48 | {
|
49 |
| - _logger.LogWarning($"Value is null or whitespace. Skipping conversion to artifact."); |
| 49 | + _logger.LogDebug($"Value is null or whitespace. Skipping conversion to artifact."); |
50 | 50 | return null;
|
51 | 51 | }
|
52 | 52 |
|
@@ -126,16 +126,16 @@ public string ToArtifact(object value, IPropertyType propertyType, ICollection<A
|
126 | 126 | }
|
127 | 127 |
|
128 | 128 | value = JsonConvert.SerializeObject(nestedContent);
|
129 |
| - _logger.LogInformation("Finished converting {PropertyType} to artifact.", propertyType.Alias); |
| 129 | + _logger.LogDebug("Finished converting {PropertyType} to artifact.", propertyType.Alias); |
130 | 130 | return (string)value;
|
131 | 131 | }
|
132 | 132 |
|
133 | 133 | public object FromArtifact(string value, IPropertyType propertyType, object currentValue)
|
134 | 134 | {
|
135 |
| - _logger.LogInformation("Converting {PropertyType} from artifact.", propertyType.Alias); |
| 135 | + _logger.LogDebug("Converting {PropertyType} from artifact.", propertyType.Alias); |
136 | 136 | if (string.IsNullOrWhiteSpace(value))
|
137 | 137 | {
|
138 |
| - _logger.LogWarning($"Value is null or whitespace. Skipping conversion from artifact."); |
| 138 | + _logger.LogDebug($"Value is null or whitespace. Skipping conversion from artifact."); |
139 | 139 | return value;
|
140 | 140 | }
|
141 | 141 |
|
@@ -219,7 +219,7 @@ public object FromArtifact(string value, IPropertyType propertyType, object curr
|
219 | 219 | // Note: NestedContent does not use formatting when serializing JSON values.
|
220 | 220 | value = JArray.FromObject(nestedContent).ToString(Formatting.None);
|
221 | 221 |
|
222 |
| - _logger.LogInformation("Finished converting {PropertyType} from artifact.", propertyType.Alias); |
| 222 | + _logger.LogDebug("Finished converting {PropertyType} from artifact.", propertyType.Alias); |
223 | 223 |
|
224 | 224 | return value;
|
225 | 225 | }
|
|
0 commit comments