Commit 7912597ff3719a797fa212d9d6102bf8834fa4ba

Authored by Adhidarma Hadiwinoto
1 parent 2b10800f95
Exists in master

Log

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

lib/apiserver/routers/smstools-config.js
... ... @@ -4,6 +4,8 @@ const express = require('express');
4 4 const bodyParser = require('body-parser');
5 5  
6 6 const config = require('komodo-sdk/config');
  7 +const logger = require('komodo-sdk/logger');
  8 +
7 9 const smstoolsConfig = require('../../smstools-config');
8 10 const smstoolsConfigCreator = require('../../smstools-config/creator');
9 11 const smstoolsConfigSetter = require('../../smstools-config/setter');
... ... @@ -136,6 +138,7 @@ async function pageModemDelete(req, res) {
136 138 }
137 139  
138 140 function pageInstallConfig(req, res) {
  141 + logger.info('ROUTER-SMSTOOLS-CONFIG: Going to write configuration and restart smsd service');
139 142 const fileToExec = `${process.cwd()}/bin/smstools-config-install`;
140 143 childProcess.execFile(fileToExec, [config.smstools_config_file || '/etc/smsd.conf'], (err, stdout, stderr) => {
141 144 res.json({