fix(core): update
This commit is contained in:
@ -37,7 +37,7 @@ export class NginxProcess {
|
||||
);
|
||||
}
|
||||
this.started = true;
|
||||
plugins.smartlog.defaultLogger.info('started Nginx!');
|
||||
plugins.smartlog.defaultLogger.log('info', 'started Nginx!');
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
}
|
||||
@ -52,7 +52,7 @@ export class NginxProcess {
|
||||
} else {
|
||||
this.smartshellInstance.exec('nginx -s reload');
|
||||
}
|
||||
plugins.smartlog.defaultLogger.info('NginxProcess has loaded the new config!');
|
||||
plugins.smartlog.defaultLogger.log('info', 'NginxProcess has loaded the new config!');
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
}
|
||||
@ -65,9 +65,9 @@ export class NginxProcess {
|
||||
if (typeof this.nginxChildProcess != 'undefined') {
|
||||
this.smartshellInstance.exec('nginx -s quit');
|
||||
this.started = false;
|
||||
plugins.smartlog.defaultLogger.info('stopped Nginx!');
|
||||
plugins.smartlog.defaultLogger.log('info', 'stopped Nginx!');
|
||||
} else {
|
||||
plugins.smartlog.defaultLogger.info('nginx already stopped!');
|
||||
plugins.smartlog.defaultLogger.log('info', 'nginx already stopped!');
|
||||
}
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
|
Reference in New Issue
Block a user