This is an automated email from the ASF dual-hosted git repository.

littlecui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git


The following commit(s) were added to refs/heads/master by this push:
     new b133e42a [feat] support the size of log up to 500M (#1459)
b133e42a is described below

commit b133e42a18f1360f70503e5c96c92df869c566e9
Author: tornado-ssy <[email protected]>
AuthorDate: Mon Mar 18 21:28:10 2024 +0800

    [feat] support the size of log up to 500M (#1459)
    
    Co-authored-by: songshiyuan 00649746 <[email protected]>
---
 server/config/config.go | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server/config/config.go b/server/config/config.go
index 05178efc..39a66872 100644
--- a/server/config/config.go
+++ b/server/config/config.go
@@ -25,11 +25,12 @@ import (
        "runtime"
        "time"
 
+       "github.com/go-chassis/go-archaius"
+
        "github.com/apache/servicecomb-service-center/pkg/log"
        "github.com/apache/servicecomb-service-center/pkg/plugin"
        "github.com/apache/servicecomb-service-center/pkg/util"
        "github.com/apache/servicecomb-service-center/version"
-       "github.com/go-chassis/go-archaius"
 )
 
 const (
@@ -39,7 +40,7 @@ const (
 
 var (
        Server = NewServerConfig()
-       //App is application root config
+       // App is application root config
        App = &AppConfig{Server: Server}
 )
 
@@ -134,7 +135,7 @@ func loadServerConfig() ServerConfig {
        }
 
        maxLogFileSize := GetInt64("log.rotateSize", 20, 
WithStandby("log_rotate_size"))
-       if maxLogFileSize <= 0 || maxLogFileSize > 50 {
+       if maxLogFileSize <= 0 || maxLogFileSize > 500 {
                maxLogFileSize = 20
        }
        maxLogBackupCount := GetInt64("log.backupCount", 50, 
WithStandby("log_backup_count"))

Reply via email to