diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 40d739bb3..61c810a63 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -585,6 +585,12 @@ sub preprocess_request { $callback = shift; + if ($::XCATSITEVALS{xcatdebugmode}) { $xcatdebugmode = $::XCATSITEVALS{xcatdebugmode} } + + if ($xcatdebugmode) { + process_debug_info("OpenBMC"); + } + my $command = $request->{command}->[0]; my $noderange = $request->{node}; my $extrargs = $request->{arg}; @@ -705,8 +711,6 @@ sub process_request { @exargs = @$extrargs; } - if ($::XCATSITEVALS{xcatdebugmode}) { $xcatdebugmode = $::XCATSITEVALS{xcatdebugmode} } - my $check = parse_node_info($noderange); my $rst = parse_command_status($command, \@exargs); return if ($rst); @@ -1739,9 +1743,6 @@ sub fork_process_login { sleep(1); $rst = 1; } elsif ($child == 0) { - if ($xcatdebugmode) { - process_debug_info($node, "Attempting to login"); - } exit(login_request($node)); } else { $login_pid_node{$child} = $node;