@@ -12,6 +12,7 @@ import (
1212
1313// PreInit is run before the daemon is initialized on bootstrap and join.
1414func PreInit (ctx context.Context , s state.State , bootstrap bool , initConfig map [string ]string ) error {
15+ logger .Debugf ("Executed Hook: PreInit (bootstrap=%v)" , bootstrap )
1516 if bootstrap {
1617 logger .Debugf ("PreInit for bootstrap: %v" , initConfig )
1718 // Parse Bootstrap API parameters
@@ -32,6 +33,7 @@ func PreInit(ctx context.Context, s state.State, bootstrap bool, initConfig map[
3233
3334// PostBootstrap is run after the daemon is initialized and bootstrapped.
3435func PostBootstrap (ctx context.Context , s state.State , initConfig map [string ]string ) error {
36+ logger .Debug ("Executed Hook: PostBootstrap" )
3537 // Parse Bootstrap API parameters
3638 bd := common.BootstrapConfig {}
3739 common .DecodeBootstrapConfig (initConfig , & bd )
@@ -46,11 +48,13 @@ func PostBootstrap(ctx context.Context, s state.State, initConfig map[string]str
4648}
4749
4850func PostJoin (ctx context.Context , s state.State , initConfig map [string ]string ) error {
51+ logger .Debug ("Executed Hook: PostJoin" )
4952 interf := interfaces.CephState {State : s }
5053 return ceph .Join (ctx , interf )
5154}
5255
5356func OnStart (ctx context.Context , s state.State ) error {
57+ logger .Debug ("Executed Hook: OnStart" )
5458 interf := interfaces.CephState {State : s }
5559 return ceph .Start (ctx , interf )
5660}
0 commit comments