summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorSebastian Jackel <sjackel@trustinternational.com>2014-08-07 10:34:37 +0200
committerSebastian Jackel <sjackel@trustinternational.com>2014-08-07 10:34:37 +0200
commit51abaf788c416bf48ba9e109344c5cbd41a1ef49 (patch)
tree3316e61ca48e5bfa9bbc7d9a58719f00d97a5697 /models
parentbe7ce72ebe6cddd49a2ffffaa3f136af9f2c72f2 (diff)
downloadgitea-51abaf788c416bf48ba9e109344c5cbd41a1ef49.tar.gz
gitea-51abaf788c416bf48ba9e109344c5cbd41a1ef49.zip
Corrected log message
Diffstat (limited to 'models')
-rw-r--r--models/publickey.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/publickey.go b/models/publickey.go
index 6e0494ef94..a03d282c0a 100644
--- a/models/publickey.go
+++ b/models/publickey.go
@@ -160,7 +160,7 @@ func saveAuthorizedKeyFile(key *PublicKey) error {
return err
}
if finfo.Mode().Perm() > 0600 {
- log.Error("authorized_keys file has unusual permission flags: " + finfo.Mode().Perm() + " - setting to -rw-r--r--")
+ log.Error(3, "authorized_keys file has unusual permission flags: %s - setting to -rw-------", finfo.Mode().Perm().String())
f.Chmod(0600)
}