fix blocking issue in roration feature for package glog
@@ -62,9 +62,13 @@ func (l *Logger) doRotateFile(filePath string) error {
now = gtime.Now()
micro = now.Microsecond() % 1000
)
+ if micro == 0 {
+ micro = 101
+ } else {
for micro < 100 {
micro *= 10
}
+ }
newFilePath = gfile.Join(
dirPath,
fmt.Sprintf(
