mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-11 03:28:31 +01:00
<empty commit message>
This commit is contained in:
parent
ce7799ee43
commit
a5bf7078c4
1 changed files with 4 additions and 5 deletions
|
|
@ -123,14 +123,13 @@ void puts_log(int severity, const char *fmt, ...)
|
|||
strcpy(log_file_name,DEFAULT_LOG_FILE_NAME);
|
||||
}
|
||||
|
||||
if (stat(log_file_name, &st) == 0)
|
||||
{
|
||||
size = st.st_size;
|
||||
}
|
||||
|
||||
if(enable_log_file)
|
||||
{
|
||||
pthread_mutex_lock (&mutex_log);
|
||||
if (stat(log_file_name, &st) == 0)
|
||||
{
|
||||
size = st.st_size;
|
||||
}
|
||||
if(size >= log_max_size)
|
||||
{
|
||||
sprintf(log_file_name_bak,"%s.1",log_file_name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue