Reset current size if rotated files on open
This commit is contained in:
		@@ -36,6 +36,7 @@ SPDLOG_INLINE rotating_file_sink<Mutex>::rotating_file_sink(
 | 
				
			|||||||
    if (rotate_on_open && current_size_ > 0)
 | 
					    if (rotate_on_open && current_size_ > 0)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        rotate_();
 | 
					        rotate_();
 | 
				
			||||||
 | 
					        current_size_ = 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user