ux: Remove service already running log message

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-03-28 16:05:49 +00:00
parent b82eb6efd6
commit 0504776169
No known key found for this signature in database
GPG Key ID: 49690ED87032539F
2 changed files with 1 additions and 9 deletions

View File

@ -364,9 +364,7 @@ export class ServiceManager extends (EventEmitter as {
this.logger.attach(this.docker, container.id, { serviceId, imageId });
if (alreadyStarted) {
this.logger.logSystemEvent(LogTypes.startServiceNoop, { service });
} else {
if (!alreadyStarted) {
this.logger.logSystemEvent(LogTypes.startServiceSuccess, { service });
}
@ -471,8 +469,6 @@ export class ServiceManager extends (EventEmitter as {
const services = await this.getAll();
for (const service of services) {
if (service.status === 'Running') {
this.logger.logSystemEvent(LogTypes.startServiceNoop, { service });
const serviceId = service.serviceId;
const imageId = service.imageId;
if (serviceId == null || imageId == null) {

View File

@ -92,10 +92,6 @@ export const startServiceSuccess: LogType = {
eventName: 'Service started',
humanName: 'Started service',
};
export const startServiceNoop: LogType = {
eventName: 'Service already running',
humanName: 'Service is already running',
};
export const startServiceError: LogType = {
eventName: 'Service start error',
humanName: 'Failed to start service',