@@ -68,7 +68,7 @@ A custom application role is an object which implements custom functions or logi
6868For example, a logging role can be created to add logging functionality on top of the built-in one.
6969
7070Since version :doc: `3.4.0 </release/3.4.0 >`, you can define an ``on_event `` callback for custom roles. The ``on_event `` callback is called
71- every time a ``box.status `` system event is broadcasted, or after the `` apply `` action of the configuration update is finished .
71+ every time a ``box.status `` system event is broadcasted.
7272If multiple custom roles have the ``on_event `` callback defined, these callbacks are called one after another in the order
7373defined by roles dependencies.
7474
@@ -111,11 +111,10 @@ As a result, a role module should return an object that has corresponding functi
111111 stop = function() -- ... -- end,
112112 dependencies = { -- ... -- },
113113 on_event = function(config, key, value)
114- local log = require('log')
115-
116- log.info('roles_cfg.my_role.foo: ' .. config.foo)
117- log.info('on_event is triggered by ' .. key)
118- log.info('is_ro: ' .. value.is_ro)
114+ local log = require('log')
115+ log.info('roles_cfg.my_role.foo: ' .. config.foo)
116+ log.info('on_event is triggered by ' .. key)
117+ log.info('is_ro: ' .. value.is_ro)
119118 end,
120119 }
121120
0 commit comments