Commit e7381741 authored by Jakob Unterwurzacher's avatar Jakob Unterwurzacher Committed by Han-Wen Nienhuys

loopback example: log microsecond timestamps

Seconds granularity is too coarse to understand what is
happening, so add microseconds. In return, the date
is dropped to keep the lines short.

Old format:
  2016/03/14 18:19:38 Dispatch: OPENDIR, NodeId: 1.

New format:
  18:18:35.988071 Dispatch: OPENDIR, NodeId: 1.
parent 801e5561
......@@ -4,6 +4,7 @@
package main
import (
"log"
"flag"
"fmt"
"os"
......@@ -18,6 +19,7 @@ import (
)
func main() {
log.SetFlags(log.Lmicroseconds)
// Scans the arg list and sets up flags
debug := flag.Bool("debug", false, "print debugging messages.")
other := flag.Bool("allow-other", false, "mount with -o allowother.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment