summaryrefslogtreecommitdiff
path: root/pkg/firewall
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-03-03 23:06:32 -0500
committerMatthew Heon <mheon@redhat.com>2019-03-03 23:06:32 -0500
commit429f2e63a0e2a3b1e084371ebed280a6288b7617 (patch)
treeb905b9b60d2c466ee06ce49774f15d4f7a3a7b02 /pkg/firewall
parente372837eb0dcafdf2fb5c3029ba340bbd9117fc3 (diff)
downloadpodman-429f2e63a0e2a3b1e084371ebed280a6288b7617.tar.gz
podman-429f2e63a0e2a3b1e084371ebed280a6288b7617.tar.bz2
podman-429f2e63a0e2a3b1e084371ebed280a6288b7617.zip
When logging with timestamps, append only until newline
When we log time timestamps, don't print a new timestamp for each input - instead, print one at the start of every line, and then wait until we hit a newline to print a new timestamp. This still doesn't exactly mirror the Docker behavior (they don't print until they receive an entire line, while we print any time the logs file is appended to - so you can see partial lines being typed in our system). Also, timestamps are recorded as the start of a line being typed, as opposed to when the enter key is pressed (on Docker). (Worth noting that, while characters are printed as they are typed, logs does respect the backspace key - so you'll also see them disappear as the person typing realizes they've made a mistake and retypes their command). This is the closest we can get to Docker without major surgery on the Kubernetes log-printing library, so I'm content to call this an adequate solution. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'pkg/firewall')
0 files changed, 0 insertions, 0 deletions