Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Frontier::Client -> Debug to file

by Anonymous Monk
on Sep 07, 2011 at 12:48 UTC ( [id://924597]=note: print w/replies, xml ) Need Help??


in reply to Frontier::Client -> Debug to file

There's no such thing as debug output per se. Let's have a look what really happens under the hood: http://kobesearch.cpan.org/htdocs/Frontier-RPC/Frontier/Client.pm.html#call-

Debug output is printed to current handle, which is STDOUT by default. You can redirect the output from the shell, or capture output with Capture::Tiny or similar techniques, or mess with select to make it temporarily go to a different handle. There are probably more ways to do it.

Replies are listed 'Best First'.
Re^2: Frontier::Client -> Debug to file
by DreamT (Pilgrim) on Apr 28, 2015 at 08:50 UTC
    Hi, Opening a REALLY old node here:) First of all, thank you for your reply (if you are around to read this).

    Secondly, I've messed around with this (the select method) when I got your reply. It worket great then, but now I have problems to get it to work with FastCGI.
    I know that FastCGI uses STDOUT and STDERR in another way, but I don't know how to solve my problem. Any idea?
        I've tried it also, but with no luck. Not with select though:
        open(CPOUT, ">&STDOUT"); open(STDOUT, ">>xyz.log") || die "OUTor stdOUT: $!"; # Print stuff close(STDOUT) || die "Can't close STDOUT: $!"; open(STDOUT, ">&CPOUT") || die "Can't restore stdOUT: $!";
        Unfortunately I don't have the possibility to install that module for the moment.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://924597]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found