All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Potential Spoof] Utility Error Output
@ 2019-09-20 18:36 Vijay Khemka
  0 siblings, 0 replies; only message in thread
From: Vijay Khemka @ 2019-09-20 18:36 UTC (permalink / raw)
  To: Wilfred Smith, openbmc



On 9/20/19, 11:15 AM, "openbmc on behalf of Wilfred Smith" <openbmc-bounces+vijaykhemka=fb.com@lists.ozlabs.org on behalf of wilfredsmith@fb.com> wrote:

    One of the code review comments for my FRU dump utility was that I should write the results to phosphor log.
    
    Should the output of a utility that is being used from a shell prompt be displayed on the console or sent to the phosphor log destination?
    
    I’m thinking that it’s best to route it solely to the console for three reasons:
    	- if there’s something wrong with logging, the utility becomes worthless
    	- When I’m interactively running a utility, it seems strange to go the log for the result of what I just did.
    	- The output of the utility will often be useful for logic within a script. Digging the information out of the log complicates that.
    
    Comments appreciated,

You should have all error and information log should go to phosphor log. And output result should go to console.
    
    Wilfred


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-20 18:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 18:36 [Potential Spoof] Utility Error Output Vijay Khemka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.