Add more logging
Reviewed By: antonk52 Differential Revision: D51154065 fbshipit-source-id: 7532d1e141562adacb9170b112185bd6f730cc5a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f856cedf81
commit
51e149765e
@@ -118,9 +118,7 @@ export class FlipperServerImpl implements FlipperServer {
|
||||
keytarModule?: KeytarModule,
|
||||
) {
|
||||
setFlipperServerConfig(config);
|
||||
console.log(
|
||||
'Loaded flipper config, paths: ' + JSON.stringify(config.paths, null, 2),
|
||||
);
|
||||
console.info('Loaded flipper config: ' + JSON.stringify(config, null, 2));
|
||||
|
||||
setProcessState(config.settings);
|
||||
const server = (this.server = new ServerController(this));
|
||||
|
||||
@@ -311,6 +311,7 @@ const exportTokenToManifest = async (token: string) => {
|
||||
|
||||
const manifestPath = getManifestPath(config);
|
||||
try {
|
||||
console.info('Reading manifest at path', manifestPath);
|
||||
const manifestData = await fs.readFile(manifestPath, {
|
||||
encoding: 'utf-8',
|
||||
});
|
||||
@@ -319,10 +320,12 @@ const exportTokenToManifest = async (token: string) => {
|
||||
|
||||
const newManifestData = JSON.stringify(manifest, null, 4);
|
||||
|
||||
console.info('Export token to manifest at path', manifestPath);
|
||||
await fs.writeFile(manifestPath, newManifestData);
|
||||
} catch (e) {
|
||||
console.error(
|
||||
'Unable to export authentication token to manifest, may be non existent.',
|
||||
e,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user