I've been working on an Openshift app where the action hooks are written in Python.
The action hooks run, and work, but I can not get any output to display when I create the app. So when I run rhc app create ... the app is successfully created, but none of the status or debug messages I try to output ever display.
The code gets called like this:
b = library.Object()
b.build()
I have tried:
- Adding a logging function to the object and adding
b.showlog()to the code above. print "Message with value: {0}".format(variable)from inside the build hook scriptprint >>sys.stderr, "Something bad happened: '{0}'...".format(return_code)from inside the build hook script
When I've written action hooks in bash, echo ... works fine.
This exact question doesn't seem to have been answered before, though there are questions that are superficially similar.