How to print logs of SAIO to STDOUT?

asked 2015-03-28 09:36:22 -0500

anishnarang gravatar image

I have followed the steps on the openstack website for SAIO. I want to make certain changes to the swift code and the print statements to show up on terminal. How do i redirect logging to STDOUT? Any help would be appreciated.

edit retag flag offensive close merge delete

Comments

which print statements are you modifying can you be more specific on what you are changing.

omar-munoz gravatar imageomar-munoz ( 2015-03-31 11:34:18 -0500 )edit

I have a similar query. I want to add print statements to the swift code base to better understand the how requests flow. For example,

def __call__(self, env, start_response):
    req = Request(env)
    sys.stdout.write(req+"\n")

Unable to find redirects under /var/log/swift or sys log

iyengapr gravatar imageiyengapr ( 2017-09-08 18:52:33 -0500 )edit