Skip to content

Commit

Permalink
refactor: update nacos configstore component.
Browse files Browse the repository at this point in the history
update default Logfile name.
change the log test case.
  • Loading branch information
cyb0225 committed Jun 29, 2023
1 parent 286f354 commit 313479d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/configstores/nacos/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
defaultGroup = "default"
defaultLabel = "default"
defaultLogDir = "/tmp/layotto/nacos/logs"
defaultLogFileName = "nacos-sdk-log"
defaultLogFileName = "nacos-sdk.log"
defaultCacheDir = "/tmp/layotto/nacos/cache"
defaultLogLevel = "debug"
defaultTimeout = 10 // second
Expand Down
2 changes: 1 addition & 1 deletion components/configstores/nacos/default_logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestNewDefaultLogger(t *testing.T) {
logger.Debug("test Debug")
logger.Info("test Info")
logger.Warn("test Warn")
logger.Error("test Debug")
logger.Error("test Error")
logger.Debug()
logger.Info()
logger.Warn()
Expand Down

0 comments on commit 313479d

Please sign in to comment.