fix: Respect logging enabling on instantiation of logger

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
Cameron Diver 2018-08-27 13:58:20 -07:00
parent 67b5503ac4
commit 328b07a092
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1

View File

@ -245,6 +245,7 @@ export class Logger {
) {
this.backend = new ResinLogBackend(apiEndpoint, uuid, deviceApiKey);
this.backend.offlineMode = offlineMode;
this.backend.publishEnabled = enableLogs;
}
public enable(value: boolean = true) {