summaryrefslogtreecommitdiffstats
path: root/models/publickey.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-20 01:14:54 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-20 01:14:54 -0400
commit8bfa7ae7453e56191aa6f7de8067d5b6bb5a4a8b (patch)
treef96bf4166b78a123997a3eb3026cb347b5c3bcc6 /models/publickey.go
parent6c8d630bef3a58860237856c648e56f4b9cea97d (diff)
downloadgitea-8bfa7ae7453e56191aa6f7de8067d5b6bb5a4a8b.tar.gz
gitea-8bfa7ae7453e56191aa6f7de8067d5b6bb5a4a8b.zip
Remove qiniu/log
Diffstat (limited to 'models/publickey.go')
-rw-r--r--models/publickey.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/models/publickey.go b/models/publickey.go
index 72b45c5b89..b0021a6880 100644
--- a/models/publickey.go
+++ b/models/publickey.go
@@ -19,7 +19,6 @@ import (
"time"
"github.com/Unknwon/com"
- qlog "github.com/qiniu/log"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/process"
@@ -55,7 +54,7 @@ func exePath() (string, error) {
func homeDir() string {
home, err := com.HomeDir()
if err != nil {
- qlog.Fatalln(err)
+ log.Fatal("Fail to get home directory: %v", err)
}
return home
}
@@ -64,13 +63,13 @@ func init() {
var err error
if appPath, err = exePath(); err != nil {
- qlog.Fatalf("publickey.init(fail to get app path): %v\n", err)
+ log.Fatal("publickey.init(fail to get app path): %v\n", err)
}
// Determine and create .ssh path.
SshPath = filepath.Join(homeDir(), ".ssh")
if err = os.MkdirAll(SshPath, os.ModePerm); err != nil {
- qlog.Fatalf("publickey.init(fail to create SshPath(%s)): %v\n", SshPath, err)
+ log.Fatal("publickey.init(fail to create SshPath(%s)): %v\n", SshPath, err)
}
}