mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-23 23:30:25 +08:00
增加卸载命令edge-node uninstall
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/utils/fs"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"net/url"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
@@ -202,12 +201,12 @@ func (this *DB) Close() error {
|
||||
}()
|
||||
|
||||
// print log
|
||||
if len(this.dsn) > 0 {
|
||||
/**if len(this.dsn) > 0 {
|
||||
u, _ := url.Parse(this.dsn)
|
||||
if u != nil && len(u.Path) > 0 {
|
||||
remotelogs.Debug("DB", "close '"+u.Path)
|
||||
}
|
||||
}
|
||||
}**/
|
||||
|
||||
return this.rawDB.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user