Merge pull request #2145 from balena-os/add-missing-log-backend-reference

Add missing log backend field assignment in logger init
This commit is contained in:
Christina Wang 2023-03-23 14:39:48 -07:00 committed by GitHub
commit 1d8844c4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,7 @@ export const initialized = _.once(async () => {
const conf = await config.getMany([
'uuid',
'apiEndpoint',
'logsEndpoint',
'deviceApiKey',
]);
@ -70,7 +71,7 @@ export const initialized = _.once(async () => {
// Everything is set, provide the values to the
// balenaBackend, and remove our listener
balenaBackend!.assignFields(
conf.apiEndpoint,
conf.logsEndpoint ?? conf.apiEndpoint,
conf.uuid!,
conf.deviceApiKey,
);