chore: add log when serializing MyServers config file

This commit is contained in:
Alexis Tyler
2021-05-20 09:37:45 +09:30
parent 17c9f6e09b
commit 17af8a64c3
+4 -1
View File
@@ -81,7 +81,8 @@ export class ApiManager extends EventEmitter {
// Get my server's config file path
const configPath = paths.get('myservers-config')!;
// Create UPC key
// Load UPC key
log.debug('Loading UPC API key...');
const file = loadState<{ upc: { apikey: string } }>(configPath);
if (file?.upc?.apikey) {
// Update api manager with key
@@ -100,6 +101,8 @@ export class ApiManager extends EventEmitter {
}
};
log.debug('Dumping MyServers config back to file', data);
// Stringify data
const stringifiedData = serializer.serialize(data);