Skip to content

Commit f18cb77

Browse files
Bug fix - content log
1 parent 7fd90ab commit f18cb77

5 files changed

Lines changed: 119 additions & 11 deletions

File tree

boss-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"github.com/hashload/horse-logger": {
2222
"name": "horse-logger",
23-
"version": "2.0.2",
24-
"hash": "bfb121c6e85b5cfeedbd445c962a3fed",
23+
"version": "2.0.3",
24+
"hash": "cea7efcfb7a2afa52e025156fd2e53a9",
2525
"artifacts": {},
2626
"failed": false,
2727
"changed": false

samples/delphi/samples.dpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ begin
2929
THorse.Get('/ping',
3030
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
3131
begin
32-
Res.Send('pong');
32+
Res.Send('{"nome":"Vinicius"}').ContentType('application/json');
3333
end);
3434

3535
THorse.Listen(9000);

samples/delphi/samples.dproj

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,20 @@
195195
<RemoteDir>classes</RemoteDir>
196196
<Operation>1</Operation>
197197
</Platform>
198+
<Platform Name="Android64">
199+
<RemoteDir>classes</RemoteDir>
200+
<Operation>1</Operation>
201+
</Platform>
198202
</DeployClass>
199203
<DeployClass Name="AndroidFileProvider">
200204
<Platform Name="Android">
201205
<RemoteDir>res\xml</RemoteDir>
202206
<Operation>1</Operation>
203207
</Platform>
208+
<Platform Name="Android64">
209+
<RemoteDir>res\xml</RemoteDir>
210+
<Operation>1</Operation>
211+
</Platform>
204212
</DeployClass>
205213
<DeployClass Name="AndroidGDBServer">
206214
<Platform Name="Android">
@@ -213,6 +221,10 @@
213221
<RemoteDir>library\lib\armeabi</RemoteDir>
214222
<Operation>1</Operation>
215223
</Platform>
224+
<Platform Name="Android64">
225+
<RemoteDir>library\lib\armeabi</RemoteDir>
226+
<Operation>1</Operation>
227+
</Platform>
216228
</DeployClass>
217229
<DeployClass Name="AndroidLibnativeArmeabiv7aFile">
218230
<Platform Name="Android64">
@@ -225,12 +237,20 @@
225237
<RemoteDir>library\lib\mips</RemoteDir>
226238
<Operation>1</Operation>
227239
</Platform>
240+
<Platform Name="Android64">
241+
<RemoteDir>library\lib\mips</RemoteDir>
242+
<Operation>1</Operation>
243+
</Platform>
228244
</DeployClass>
229245
<DeployClass Name="AndroidServiceOutput">
230246
<Platform Name="Android">
231247
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
232248
<Operation>1</Operation>
233249
</Platform>
250+
<Platform Name="Android64">
251+
<RemoteDir>library\lib\arm64-v8a</RemoteDir>
252+
<Operation>1</Operation>
253+
</Platform>
234254
</DeployClass>
235255
<DeployClass Name="AndroidServiceOutput_Android32">
236256
<Platform Name="Android64">
@@ -243,120 +263,200 @@
243263
<RemoteDir>res\drawable</RemoteDir>
244264
<Operation>1</Operation>
245265
</Platform>
266+
<Platform Name="Android64">
267+
<RemoteDir>res\drawable</RemoteDir>
268+
<Operation>1</Operation>
269+
</Platform>
246270
</DeployClass>
247271
<DeployClass Name="AndroidSplashStyles">
248272
<Platform Name="Android">
249273
<RemoteDir>res\values</RemoteDir>
250274
<Operation>1</Operation>
251275
</Platform>
276+
<Platform Name="Android64">
277+
<RemoteDir>res\values</RemoteDir>
278+
<Operation>1</Operation>
279+
</Platform>
252280
</DeployClass>
253281
<DeployClass Name="AndroidSplashStylesV21">
254282
<Platform Name="Android">
255283
<RemoteDir>res\values-v21</RemoteDir>
256284
<Operation>1</Operation>
257285
</Platform>
286+
<Platform Name="Android64">
287+
<RemoteDir>res\values-v21</RemoteDir>
288+
<Operation>1</Operation>
289+
</Platform>
258290
</DeployClass>
259291
<DeployClass Name="Android_Colors">
260292
<Platform Name="Android">
261293
<RemoteDir>res\values</RemoteDir>
262294
<Operation>1</Operation>
263295
</Platform>
296+
<Platform Name="Android64">
297+
<RemoteDir>res\values</RemoteDir>
298+
<Operation>1</Operation>
299+
</Platform>
264300
</DeployClass>
265301
<DeployClass Name="Android_DefaultAppIcon">
266302
<Platform Name="Android">
267303
<RemoteDir>res\drawable</RemoteDir>
268304
<Operation>1</Operation>
269305
</Platform>
306+
<Platform Name="Android64">
307+
<RemoteDir>res\drawable</RemoteDir>
308+
<Operation>1</Operation>
309+
</Platform>
270310
</DeployClass>
271311
<DeployClass Name="Android_LauncherIcon144">
272312
<Platform Name="Android">
273313
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
274314
<Operation>1</Operation>
275315
</Platform>
316+
<Platform Name="Android64">
317+
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
318+
<Operation>1</Operation>
319+
</Platform>
276320
</DeployClass>
277321
<DeployClass Name="Android_LauncherIcon36">
278322
<Platform Name="Android">
279323
<RemoteDir>res\drawable-ldpi</RemoteDir>
280324
<Operation>1</Operation>
281325
</Platform>
326+
<Platform Name="Android64">
327+
<RemoteDir>res\drawable-ldpi</RemoteDir>
328+
<Operation>1</Operation>
329+
</Platform>
282330
</DeployClass>
283331
<DeployClass Name="Android_LauncherIcon48">
284332
<Platform Name="Android">
285333
<RemoteDir>res\drawable-mdpi</RemoteDir>
286334
<Operation>1</Operation>
287335
</Platform>
336+
<Platform Name="Android64">
337+
<RemoteDir>res\drawable-mdpi</RemoteDir>
338+
<Operation>1</Operation>
339+
</Platform>
288340
</DeployClass>
289341
<DeployClass Name="Android_LauncherIcon72">
290342
<Platform Name="Android">
291343
<RemoteDir>res\drawable-hdpi</RemoteDir>
292344
<Operation>1</Operation>
293345
</Platform>
346+
<Platform Name="Android64">
347+
<RemoteDir>res\drawable-hdpi</RemoteDir>
348+
<Operation>1</Operation>
349+
</Platform>
294350
</DeployClass>
295351
<DeployClass Name="Android_LauncherIcon96">
296352
<Platform Name="Android">
297353
<RemoteDir>res\drawable-xhdpi</RemoteDir>
298354
<Operation>1</Operation>
299355
</Platform>
356+
<Platform Name="Android64">
357+
<RemoteDir>res\drawable-xhdpi</RemoteDir>
358+
<Operation>1</Operation>
359+
</Platform>
300360
</DeployClass>
301361
<DeployClass Name="Android_NotificationIcon24">
302362
<Platform Name="Android">
303363
<RemoteDir>res\drawable-mdpi</RemoteDir>
304364
<Operation>1</Operation>
305365
</Platform>
366+
<Platform Name="Android64">
367+
<RemoteDir>res\drawable-mdpi</RemoteDir>
368+
<Operation>1</Operation>
369+
</Platform>
306370
</DeployClass>
307371
<DeployClass Name="Android_NotificationIcon36">
308372
<Platform Name="Android">
309373
<RemoteDir>res\drawable-hdpi</RemoteDir>
310374
<Operation>1</Operation>
311375
</Platform>
376+
<Platform Name="Android64">
377+
<RemoteDir>res\drawable-hdpi</RemoteDir>
378+
<Operation>1</Operation>
379+
</Platform>
312380
</DeployClass>
313381
<DeployClass Name="Android_NotificationIcon48">
314382
<Platform Name="Android">
315383
<RemoteDir>res\drawable-xhdpi</RemoteDir>
316384
<Operation>1</Operation>
317385
</Platform>
386+
<Platform Name="Android64">
387+
<RemoteDir>res\drawable-xhdpi</RemoteDir>
388+
<Operation>1</Operation>
389+
</Platform>
318390
</DeployClass>
319391
<DeployClass Name="Android_NotificationIcon72">
320392
<Platform Name="Android">
321393
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
322394
<Operation>1</Operation>
323395
</Platform>
396+
<Platform Name="Android64">
397+
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
398+
<Operation>1</Operation>
399+
</Platform>
324400
</DeployClass>
325401
<DeployClass Name="Android_NotificationIcon96">
326402
<Platform Name="Android">
327403
<RemoteDir>res\drawable-xxxhdpi</RemoteDir>
328404
<Operation>1</Operation>
329405
</Platform>
406+
<Platform Name="Android64">
407+
<RemoteDir>res\drawable-xxxhdpi</RemoteDir>
408+
<Operation>1</Operation>
409+
</Platform>
330410
</DeployClass>
331411
<DeployClass Name="Android_SplashImage426">
332412
<Platform Name="Android">
333413
<RemoteDir>res\drawable-small</RemoteDir>
334414
<Operation>1</Operation>
335415
</Platform>
416+
<Platform Name="Android64">
417+
<RemoteDir>res\drawable-small</RemoteDir>
418+
<Operation>1</Operation>
419+
</Platform>
336420
</DeployClass>
337421
<DeployClass Name="Android_SplashImage470">
338422
<Platform Name="Android">
339423
<RemoteDir>res\drawable-normal</RemoteDir>
340424
<Operation>1</Operation>
341425
</Platform>
426+
<Platform Name="Android64">
427+
<RemoteDir>res\drawable-normal</RemoteDir>
428+
<Operation>1</Operation>
429+
</Platform>
342430
</DeployClass>
343431
<DeployClass Name="Android_SplashImage640">
344432
<Platform Name="Android">
345433
<RemoteDir>res\drawable-large</RemoteDir>
346434
<Operation>1</Operation>
347435
</Platform>
436+
<Platform Name="Android64">
437+
<RemoteDir>res\drawable-large</RemoteDir>
438+
<Operation>1</Operation>
439+
</Platform>
348440
</DeployClass>
349441
<DeployClass Name="Android_SplashImage960">
350442
<Platform Name="Android">
351443
<RemoteDir>res\drawable-xlarge</RemoteDir>
352444
<Operation>1</Operation>
353445
</Platform>
446+
<Platform Name="Android64">
447+
<RemoteDir>res\drawable-xlarge</RemoteDir>
448+
<Operation>1</Operation>
449+
</Platform>
354450
</DeployClass>
355451
<DeployClass Name="Android_Strings">
356452
<Platform Name="Android">
357453
<RemoteDir>res\values</RemoteDir>
358454
<Operation>1</Operation>
359455
</Platform>
456+
<Platform Name="Android64">
457+
<RemoteDir>res\values</RemoteDir>
458+
<Operation>1</Operation>
459+
</Platform>
360460
</DeployClass>
361461
<DeployClass Name="DebugSymbols">
362462
<Platform Name="iOSSimulator">
@@ -445,6 +545,9 @@
445545
<Platform Name="Android">
446546
<Operation>0</Operation>
447547
</Platform>
548+
<Platform Name="Android64">
549+
<Operation>0</Operation>
550+
</Platform>
448551
<Platform Name="iOSDevice32">
449552
<Operation>0</Operation>
450553
</Platform>
@@ -930,6 +1033,9 @@
9301033
<Platform Name="Android">
9311034
<Operation>1</Operation>
9321035
</Platform>
1036+
<Platform Name="Android64">
1037+
<Operation>1</Operation>
1038+
</Platform>
9331039
</DeployClass>
9341040
<DeployClass Name="ProjectiOSDeviceDebug">
9351041
<Platform Name="iOSDevice32">
@@ -1032,6 +1138,10 @@
10321138
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
10331139
<Operation>1</Operation>
10341140
</Platform>
1141+
<Platform Name="Android64">
1142+
<RemoteDir>library\lib\arm64-v8a</RemoteDir>
1143+
<Operation>1</Operation>
1144+
</Platform>
10351145
<Platform Name="iOSDevice32">
10361146
<Operation>1</Operation>
10371147
</Platform>

samples/lazarus/Console.lpi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</Other>
5050
</CompilerOptions>
5151
<Debugging>
52-
<Exceptions Count="3">
52+
<Exceptions Count="4">
5353
<Item1>
5454
<Name Value="EAbort"/>
5555
</Item1>
@@ -59,6 +59,9 @@
5959
<Item3>
6060
<Name Value="EFOpenError"/>
6161
</Item3>
62+
<Item4>
63+
<Name Value="EResNotFound"/>
64+
</Item4>
6265
</Exceptions>
6366
</Debugging>
6467
</CONFIG>

samples/lazarus/Console.lpr

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ procedure GetPing(Req: THorseRequest; Res: THorseResponse; Next: TNextProc);
1919
Res.Send('Pong');
2020
end;
2121

22-
procedure OnListen(Horse: THorse);
23-
begin
24-
Writeln(Format('Server is runing on %s:%d', [Horse.Host, Horse.Port]));
25-
end;
26-
2722
begin
2823
LLogFileConfig := THorseLoggerLogFileConfig.New
29-
.SetLogFormat('${request_clientip} [${time}] ${response_status}')
24+
.SetLogFormat('${request_clientip} [${time}] ${response_status} ${request_content} ${response_content}')
3025
.SetDir('D:\Servidores\Log');
3126

3227
// You can also specify the log format and the path where it will be saved:
@@ -40,5 +35,5 @@ procedure OnListen(Horse: THorse);
4035

4136
THorse.Get('/ping', GetPing);
4237

43-
THorse.Listen(9000, OnListen);
38+
THorse.Listen(9000);
4439
end.

0 commit comments

Comments
 (0)