mirror of
https://github.com/unraid/api.git
synced 2026-05-03 05:31:19 -05:00
chore: add log when serializing MyServers config file
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user