Issue 120083 - Log level for pythonscript should be changeable through environmental variable
Summary: Log level for pythonscript should be changeable through environmental variable
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Normal
Target Milestone: 4.1.0
Assignee: hanya
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 14:25 UTC by hanya
Modified: 2017-05-20 09:32 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Proposed patcth for this issue (1.51 KB, patch)
2012-06-25 14:27 UTC, hanya
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description hanya 2012-06-25 14:25:25 UTC
Script provider for python has logging function but its setting is coded in 
pythonscript.py file and its value can not be changed without modifying the file. 
When the office installed in user's system, general user can not be changed it. 

It should be changeable by other way like environmental variable. 
Python supports debug flag variable PYTHONDEBUG, but pythonscript.py supports 
ERROR and DEBUG level, so it is not enough for this purpose.
Comment 1 hanya 2012-06-25 14:27:31 UTC
Created attachment 78467 [details]
Proposed patcth for this issue

Reads log level from "PYSCRIPT_LOG_LEVEL" environmental variable and 
reads log output type from "PYSCRIPT_LOG_STDOUT".
Comment 2 Rob Weir 2013-03-11 15:04:07 UTC
I'm adding this comment to all open issues with Issue Type == PATCH.  We have 220 such issues, many of them quite old.  I apologize for that.  

We need your help in prioritizing which patches should be integrated into our next release, Apache OpenOffice 4.0.

If you have submitted a patch and think it is applicable for AOO 4.0, please respond with a comment to let us know.

On the other hand, if the patch is no longer relevant, please let us know that as well.

If you have any general questions or want to discuss this further, please send a note to our dev mailing list:  dev@openoffice.apache.org

Thanks!

-Rob
Comment 3 SVN Robot 2013-07-12 08:58:59 UTC
"hdu" committed SVN revision 1502482 into trunk:
#i120083# make python loglevel and log output changeable through environment ...
Comment 4 hdu@apache.org 2013-07-12 09:00:18 UTC
Good stuff. Thanks for the patch!