Changeset 8bbfd4d in tol


Ignore:
Timestamp:
Feb 8, 2012, 6:57:11 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
aaf0528
Parents:
b83b8ed3
Message:

Fixes #1423
Downloading traces are controlled by TolConfigManager::Config::Various::Verbose::DownloadingUrl

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4081 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/stdlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/TolConfigManager/default.tol

    rb83b8ed3 r8bbfd4d  
    156156      "Enables/disables call stack tracing of warning messages"+
    157157      "\n Changes in this option do not take effect until next TOL session";
    158       Real ShowStackAtWarning = 0
     158      Real ShowStackAtWarning = 0;
     159      Text _.autodoc.member.DownloadingUrl =
     160      "Enables/disables tracing of URL downloads"+
     161      "\n Changes in this option do not take effect until next TOL session";
     162      Real DownloadingUrl = 0
    159163    ]]
    160164  ]]
  • tol/stdlib/general/grammars/_text.tol

    rb83b8ed3 r8bbfd4d  
    11721172//////////////////////////////////////////////////////////////////////////////
    11731173{
    1174   Write("[GetUrlContents.tcl.uri] Downloading from \""+url+"\" ... ");
     1174  If(TolConfigManager::Config::Various::Verbose::DownloadingUrl,
     1175  Write("[GetUrlContents.tcl.uri] Downloading from \""+url+"\" ... "));
    11751176  Text tcl_helper =
    11761177    "package require uri\n"+
    … …  
    11921193    Text If(result["status"],
    11931194    {
    1194       WriteLn("OK");
     1195      If(TolConfigManager::Config::Various::Verbose::DownloadingUrl,
     1196      WriteLn("OK"));
    11951197      Text result["result"]
    11961198    },
    … …  
    12121214//////////////////////////////////////////////////////////////////////////////
    12131215{
    1214   Write("[GetUrlContents.tcl.curl] Downloading from \""+url_+"\" ... ");
     1216  If(TolConfigManager::Config::Various::Verbose::DownloadingUrl,
     1217  Write("[GetUrlContents.tcl.curl] Downloading from \""+url_+"\" ... "));
    12151218  Set result1 = CurlApi::GetUrl( [[ Text url = url_ ]] );
    12161219  If( result1::failStatus,
    … …  
    12211224  },
    12221225  {
    1223     WriteLn("OK");
     1226    If(TolConfigManager::Config::Various::Verbose::DownloadingUrl,
     1227    WriteLn("OK"));
    12241228    result1::bodyData
    12251229  })
    … …  
    12301234//////////////////////////////////////////////////////////////////////////////
    12311235{
    1232   WriteLn("[GetUrlContents.sys.wget]Downloading from \""+url+"\" ...");
     1236  If(TolConfigManager::Config::Various::Verbose::DownloadingUrl,
     1237  WriteLn("[GetUrlContents.sys.wget]Downloading from \""+url+"\" ..."));
    12331238  Text tmp = TmpDir+"wget."<<IntRand(111111111,999999999)+".tmp";
    12341239  Text order = "wget -O"+tmp+" "+url;
Note: See TracChangeset for help on using the changeset viewer.