Add excessive logging for "deinit" method for Msys plugin

Summary: Debugging T141716711

Reviewed By: antonk52

Differential Revision: D44295078

fbshipit-source-id: 5269c7308e71d8b2ba7881747fcd5cbe37d81729
This commit is contained in:
Andrey Goncharov
2023-03-22 07:34:39 -07:00
committed by Facebook GitHub Bot
parent bb1bb98801
commit b76c8a390c
2 changed files with 7 additions and 0 deletions

View File

@@ -228,6 +228,9 @@ export default abstract class AbstractClient extends EventEmitter {
// diff the background plugin list, disconnect old, connect new ones
oldBackgroundPlugins.forEach((plugin) => {
if (!this.backgroundPlugins.has(plugin)) {
if (plugin === 'Msys') {
console.log('AbstyractClient.refreshPlugins -> deinit Msys');
}
this.deinitPlugin(plugin);
}
});

View File

@@ -371,6 +371,10 @@ function stopPlugin(
!defaultEnabledBackgroundPlugins.includes(pluginId)) &&
client?.isBackgroundPlugin(pluginId)
) {
// Debugging T141716711
if (pluginId === 'Msys') {
console.log('pluginManager.stopPlugin -> deinit Msys');
}
client.deinitPlugin(pluginId);
}
// stop sandy plugins