File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,12 @@ module.exports.getJSONProfilingMode = function() {
299299
300300module . exports . start = function start ( ) {
301301 agent . setOption ( propertyMappings [ 'applicationID' ] , main_filename ) ;
302+ for ( var property in headlessPropertyMappings ) {
303+ var prop = agent . getOption ( property ) ;
304+ if ( prop ) {
305+ agent . setOption ( headlessPropertyMappings [ property ] , prop ) ;
306+ }
307+ }
302308 var headlessOutputDir = agent . getOption ( 'com.ibm.diagnostics.healthcenter.headless.output.directory' ) ;
303309 if ( headlessOutputDir ) {
304310 headlessZip . setHeadlessOutputDir ( headlessOutputDir ) ;
@@ -307,12 +313,6 @@ module.exports.start = function start () {
307313 if ( headlessFilesToKeep && ! isNaN ( headlessFilesToKeep ) && headlessFilesToKeep > 0 ) {
308314 headlessZip . setFilesToKeep ( headlessFilesToKeep ) ;
309315 }
310- for ( var property in headlessPropertyMappings ) {
311- var prop = agent . getOption ( property ) ;
312- if ( prop ) {
313- agent . setOption ( headlessPropertyMappings [ property ] , prop ) ;
314- }
315- }
316316 var am = this ;
317317 agent . start ( ) ;
318318 process . on ( 'exit' , function ( ) {
You can’t perform that action at this time.
0 commit comments