glog icon indicating copy to clipboard operation
glog copied to clipboard

FLAGS_logtostdout does not seem to follow FLAGS_logbuflevel

Open kishorenc opened this issue 2 years ago • 2 comments

The following configuration does not seem to flush logs immediately (logs are buffered and flushed periodically):

FLAGS_logtostdout = true;
FLAGS_logbuflevel = -1;

However, the following does:

FLAGS_logtostderr = true;
FLAGS_logbuflevel = -1;

Both flags should have identical behavior.

kishorenc avatar Aug 28 '23 06:08 kishorenc

@kishorenc I would like to take a loo and try to fix it if no one is on it now.

git-hulk avatar Aug 28 '23 06:08 git-hulk

@kishorenc I guess it should cause by the stdout has the buffered but stderr is not.

git-hulk avatar Aug 28 '23 08:08 git-hulk