Skip to content

Commit

Permalink
Отдельный инклуд для логера качалки
Browse files Browse the repository at this point in the history
  • Loading branch information
zedxxx committed Jan 3, 2025
1 parent 9b36ea2 commit 3f6e4a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Src/Network/Network.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{$IFDEF DEBUG}
{.$DEFINE WRITE_HTTP_LOG}
{.$DEFINE WRITE_HTTP_LOG_WITH_BODY}
{$ENDIF}
2 changes: 1 addition & 1 deletion Src/Network/u_DownloaderHttpByCurl.pas
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
interface

{$IFDEF DEBUG}
{$I SASPlanet.inc}
{$I Network.inc}
{$ENDIF}

uses
Expand Down
2 changes: 1 addition & 1 deletion Src/Network/u_DownloaderHttpByWinInet.pas
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
interface

{$IFDEF DEBUG}
{$I SASPlanet.inc}
{$I Network.inc}
{$ENDIF}

uses
Expand Down
2 changes: 1 addition & 1 deletion Src/Network/u_DownloaderHttpLog.pas
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
interface

{$IFDEF DEBUG}
{$I SASPlanet.inc}
{$I Network.inc}
{$ENDIF}

uses
Expand Down
6 changes: 0 additions & 6 deletions Src/SASPlanet.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
{$DEFINE USE_FAST_MOVE}
{$ENDIF}

{$ELSE}

// Logging http requests
{.$DEFINE WRITE_HTTP_LOG}
{.$DEFINE WRITE_HTTP_LOG_WITH_BODY}

{$ENDIF}

{$IFDEF EUREKALOG}
Expand Down

0 comments on commit 3f6e4a9

Please sign in to comment.