Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
c-darwin committed Feb 18, 2016
1 parent 47aa07b commit 3be5498
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package consts


// текущая версия
const VERSION = "2.1.0a8"
const VERSION = "2.1.0a9"

// чтобы не выдавать одно и тоже голосование
const ASSIGN_TIME = 86400
Expand Down
5 changes: 2 additions & 3 deletions packages/dcoin/dcoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ func Start(dir string, thrustWindowLoder *window.Window) {
log.Debug("OldFileName %v", *utils.OldFileName)
if *utils.OldFileName != "" {

log.Debug("OldFileName %v", *utils.OldFileName)
err = utils.CopyFileContents(*utils.Dir+`/dc.tmp`, *utils.OldFileName)
if err != nil {
log.Debug("%v", os.Stderr)
Expand All @@ -209,7 +208,7 @@ func Start(dir string, thrustWindowLoder *window.Window) {
}
break
}
log.Debug("*utils.OldFileName %v", *utils.OldVersion)
log.Debug("*utils.OldVersion %v", *utils.OldVersion)
if len(*utils.OldVersion) > 0 {
if (utils.VersionOrdinal(*utils.OldVersion) < utils.VersionOrdinal("1.0.2b5")) {
log.Debug("%v", "ALTER TABLE config ADD COLUMN analytics_disabled smallint")
Expand All @@ -226,7 +225,7 @@ func Start(dir string, thrustWindowLoder *window.Window) {
}
}

if (utils.VersionOrdinal(*utils.OldVersion) < utils.VersionOrdinal("2.1.0a8")) {
if (utils.VersionOrdinal(*utils.OldVersion) < utils.VersionOrdinal("2.1.0a9")) {
log.Debug("< 2.1.0a8")
community, err := utils.DB.GetCommunityUsers()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3414,7 +3414,7 @@ func DcoinUpd(url string) error {
} else {
old = *Dir + "/" + filepath.Base(os.Args[0])
}
log.Debug(*Dir+"/dc.tmp", "-oldFileName", old, "-dir", *Dir)
log.Debug(*Dir+"/dc.tmp", "-oldFileName", old, "-dir", *Dir, "-oldVersion", consts.VERSION)
err = exec.Command(*Dir+"/dc.tmp", "-oldFileName", old, "-dir", *Dir, "-oldVersion", consts.VERSION).Start()
if err != nil {
return ErrInfo(err)
Expand Down

0 comments on commit 3be5498

Please sign in to comment.