fix(plugin): use OpenClaw gateway_start/gateway_stop hooks
This commit is contained in:
@@ -148,12 +148,12 @@ export default function register(api: PluginAPI, rawConfig: PluginConfig | Plugi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hook into Gateway lifecycle
|
// Hook into Gateway lifecycle
|
||||||
api.on('gateway:start', () => {
|
api.on('gateway_start', () => {
|
||||||
logger.info('Gateway starting, starting telemetry server...');
|
logger.info('Gateway starting, starting telemetry server...');
|
||||||
startSidecar();
|
startSidecar();
|
||||||
});
|
});
|
||||||
|
|
||||||
api.on('gateway:stop', () => {
|
api.on('gateway_stop', () => {
|
||||||
logger.info('Gateway stopping, stopping telemetry server...');
|
logger.info('Gateway stopping, stopping telemetry server...');
|
||||||
stopSidecar();
|
stopSidecar();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user