@@ -54,7 +54,7 @@ func guaranteeInit(fn func() error) {
54
54
if err != nil {
55
55
ptr := reflect .ValueOf (fn ).Pointer ()
56
56
fi := runtime .FuncForPC (ptr )
57
- log .Fatal ("%s init failed: %v" , fi .Name (), err )
57
+ log .Fatal ("%s failed: %v" , fi .Name (), err )
58
58
}
59
59
}
60
60
@@ -63,7 +63,7 @@ func guaranteeInitCtx(ctx context.Context, fn func(ctx context.Context) error) {
63
63
if err != nil {
64
64
ptr := reflect .ValueOf (fn ).Pointer ()
65
65
fi := runtime .FuncForPC (ptr )
66
- log .Fatal ("%s(ctx) init failed: %v" , fi .Name (), err )
66
+ log .Fatal ("%s(ctx) failed: %v" , fi .Name (), err )
67
67
}
68
68
}
69
69
@@ -80,10 +80,12 @@ func syncAppPathForGit(ctx context.Context) (err error) {
80
80
return err
81
81
}
82
82
if runtimeState .LastAppPath != setting .AppPath {
83
- log .Info ("AppPath changed from '%s' to '%s', sync repository hooks ..." , runtimeState .LastAppPath , setting .AppPath )
83
+ log .Info ("AppPath changed from '%s' to '%s'" , runtimeState .LastAppPath , setting .AppPath )
84
+
85
+ log .Info ("re-sync repository hooks ..." )
84
86
guaranteeInitCtx (ctx , repo_module .SyncRepositoryHooks )
85
87
86
- log .Info ("AppPath changed from '%s' to '%s', sync ssh keys ..." , runtimeState . LastAppPath , setting . AppPath )
88
+ log .Info ("re-write ssh public keys ..." )
87
89
guaranteeInit (models .RewriteAllPublicKeys )
88
90
89
91
runtimeState .LastAppPath = setting .AppPath
0 commit comments