VirtualBox

Changeset 83381 in vbox for trunk


Ignore:
Timestamp:
Mar 24, 2020 2:42:41 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/WebServerGlueBase: Added config options for dumping the enviornment and argument vector to the debug log.

Location:
trunk/src/VBox/ValidationKit/testmanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/config.py

    r82968 r83381  
    6767g_ksTestManagerDir      = os.path.dirname(os.path.abspath(__file__));
    6868## The Validation Kit directory.
    69 g_ksValidationKitDir        = os.path.dirname(g_ksTestManagerDir);
     69g_ksValidationKitDir    = os.path.dirname(g_ksTestManagerDir);
    7070## The TestManager htdoc directory.
    7171g_ksTmHtDocDir          = os.path.join(g_ksTestManagerDir, 'htdocs');
     
    159159## Timestamp and pid prefix the glue debug output.
    160160g_kfSrvGlueDebugTS      = True;
     161## Whether to dumping CGI environment variables.
     162g_kfSrvGlueCgiDumpEnv   = False;
     163## Whether to dumping CGI script arguments.
     164g_kfSrvGlueCgiDumpArgs  = False;
    161165## Enables task scheduler debug output to g_ksSrcGlueDebugLogDst.
    162166g_kfSrvGlueDebugScheduler = False;
  • trunk/src/VBox/ValidationKit/testmanager/core/webservergluebase.py

    r82968 r83381  
    7272        if config.g_ksSrcGlueDebugLogDst is not None and config.g_kfSrvGlueDebug is True:
    7373            self._oDbgFile = open(config.g_ksSrcGlueDebugLogDst, 'a');
     74            if config.g_kfSrvGlueCgiDumpArgs:
     75                self._oDbgFile.write('Arguments: %s\nEnvironment:\n' % (sys.argv,));
     76            if config.g_kfSrvGlueCgiDumpEnv:
     77                for sVar in sorted(os.environ):
     78                    self._oDbgFile.write('  %s=\'%s\' \\\n' % (sVar, os.environ[sVar],));
     79
    7480        self._afnDebugInfo     = [];
    7581
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette