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

tianxiaoliang 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 2dd63c3  [SCB-2094] Fix initialization does not print detail error 
(#850)
2dd63c3 is described below

commit 2dd63c3885695507f6ea86320ed225f5cfa36060
Author: robotLJW <[email protected]>
AuthorDate: Sun Feb 7 17:22:20 2021 +0800

    [SCB-2094] Fix initialization does not print detail error (#850)
---
 server/server.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/server.go b/server/server.go
index 5440e9e..174b9b2 100644
--- a/server/server.go
+++ b/server/server.go
@@ -117,7 +117,7 @@ func (s *ServiceCenterServer) initDatasource() {
                CompactInterval:   config.GetRegistry().CompactInterval,
                CompactIndexDelta: config.GetRegistry().CompactIndexDelta,
        }); err != nil {
-               log.Fatalf(err, "init datasource failed")
+               log.Fatal("init datasource failed", err)
        }
 }
 

Reply via email to