xiongzhu 10 mesi fa
parent
commit
db421ff1a2
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      scripts/phone.js
  2. 1 1
      scripts/system_server.js

+ 1 - 1
scripts/phone.js

@@ -170,7 +170,7 @@ setImmediate(() => {
         let config = readConfig()
 
         new Interaction().start(23946, (msg) => {
-            console.log('on message', msg)
+            log(`received message: ${JSON.stringify(msg)}`)
             if (msg.action === 'saveConfig') {
                 config = msg.data
                 saveConfig(config)

+ 1 - 1
scripts/system_server.js

@@ -175,7 +175,7 @@ setImmediate(() => {
         // saveConfig({ a: 1 })
         let config = readConfig()
         new Interaction().start(23947, (msg) => {
-            console.log('on message', msg)
+            log(`received message: ${JSON.stringify(msg)}`)
             if (msg.action === 'saveConfig') {
                 config = msg.data
                 saveConfig(config)