Project

General

Profile

Actions

Feature #1724

open

Change a prefix of scripts executed from kb-recalc to be printed in log

Added by Evgeny Novikov almost 13 years ago. Updated almost 13 years ago.

Status:
Open
Priority:
Low
Category:
Statistics server
Start date:
09/01/2011
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

So somebody will easily distinguish where KB scripts are executed

Actions #1

Updated by Pavel Shved almost 13 years ago

What do you mean? Could you please give a small sample?

Actions #2

Updated by Evgeny Novikov almost 13 years ago

Artificial example:

kb-recalc: TRACE: Execute script 'return 1 if ($model ne '32_1a');
kb-recalc: TRACE: print_debug_debug("I'm passed!");' with model '32_1a', module 'drivers/block/pktcdvd.ko', main 'ldv_main0_sequence_infinite_withcheck_stateful', error trace ... and KB error trace ....
kb-recalc: DEBUG: I'm passed!.
kb-recalc: DEBUG: Script passed.

I'd like to see:
kb-recalc: TRACE: Execute script 'return 1 if ($model ne '32_1a');
kb-recalc: TRACE: print_debug_debug("I'm passed!");' with model '32_1a', module 'drivers/block/pktcdvd.ko', main 'ldv_main0_sequence_infinite_withcheck_stateful', error trace ... and KB error trace ....
kb-recalc-pattern-script: DEBUG: I'm passed!.
kb-recalc: DEBUG: Script passed.

Actions #3

Updated by Pavel Shved almost 13 years ago

Did you try to use open3_callbacks from the source:shared/perl/modules/Utils.pm ?

Actions #4

Updated by Evgeny Novikov almost 13 years ago

No, yet. I'll see it later.

Actions

Also available in: Atom PDF