Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC SCM Git: Are there ways to customise python scripts in post-receive git hooks (eg AssociateWorkitem.py) to output debug information to file?

There are python files that is developed as part of IBM RTC git integration, (eg AssociateWorkitem.py and ValidatePush.py) that are run as post receive git hooks.

Are there ways to customise these files in order to print debugging messages to file? (messages such as whether the scripts are correctly run etc)

We tried adding:
export DEBUG_PYT=true
to post-receive, though that would display the information on the command line, and doesn't allow for it to be outputted to file.

0 votes



2 answers

Permanent link
Created RFE since it is not possible:
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=93368

0 votes


Permanent link

Thanks George!

We were able to output logs using Python's standard output function.
It is described in "Association WorkItems.py".

After this
We are planning to create a mechanism to insert log processing and debug.

0 votes

Comments

Josako-san,
It is great that you got the output function working. It should just be a matter of processing that information, which you seem to already be doing.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,007

Question asked: Aug 22 '16, 2:48 a.m.

Question was seen: 2,937 times

Last updated: Dec 26 '16, 9:36 p.m.

Confirmation Cancel Confirm