Closed andyxning closed 5 months ago
Change formatter for FileMode var to %s as it has implemented Stringer interface and the output is more readable.
FileMode
%s
Before(formatter is %x):
%x
Opening db file (default-etcd/member/snap/db) with mode 2d72772d2d2d2d2d2d2d and with options: {Timeout: 0s, NoGrowSync: false, NoFreelistSync: true, PreLoadFreelist: false, FreelistType: , ReadOnly: false, MmapFlags: 8000, InitialMmapSize: 10737418240, PageSize: 0, NoSync: false, OpenFile: 0x0, Mlock: false, Logger: 0xc000398248}
After(formatter is %s):
Opening db file (default-etcd/member/snap/db) with mode -rw------- and with options: {Timeout: 0s, NoGrowSync: false, NoFreelistSync: true, PreLoadFreelist: false, FreelistType: , ReadOnly: false, MmapFlags: 8000, InitialMmapSize: 10737418240, PageSize: 0, NoSync: false, OpenFile: 0x0, Mlock: false, Logger: 0xc0004a8148}
/lgtm
thanks and really good find!
Change formatter for
FileMode
var to%s
as it has implemented Stringer interface and the output is more readable.Before(formatter is
%x
):After(formatter is
%s
):