File tree 2 files changed +2
-2
lines changed
src/JsonApiDotNetCore/Serialization
test/JsonApiDotNetCoreExampleTests/IntegrationTests/Logging
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public async Task<InputFormatterResult> ReadAsync(InputFormatterContext context)
50
50
string body = await GetRequestBodyAsync ( context . HttpContext . Request . Body ) ;
51
51
52
52
string url = context . HttpContext . Request . GetEncodedUrl ( ) ;
53
- _traceWriter . LogMessage ( ( ) => $ "Received request at '{ url } ' with body: <<{ body } >>") ;
53
+ _traceWriter . LogMessage ( ( ) => $ "Received { context . HttpContext . Request . Method } request at '{ url } ' with body: <<{ body } >>") ;
54
54
55
55
object model = null ;
56
56
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public async Task Logs_request_body_at_Trace_level()
77
77
loggerFactory . Logger . Messages . Should ( ) . NotBeEmpty ( ) ;
78
78
79
79
loggerFactory . Logger . Messages . Should ( ) . ContainSingle ( message => message . LogLevel == LogLevel . Trace &&
80
- message . Text . StartsWith ( "Received request at 'http://localhost/auditEntries' with body: <<" , StringComparison . Ordinal ) ) ;
80
+ message . Text . StartsWith ( "Received POST request at 'http://localhost/auditEntries' with body: <<" , StringComparison . Ordinal ) ) ;
81
81
}
82
82
83
83
[ Fact ]
You can’t perform that action at this time.
0 commit comments