Commit 032162c66735090bf611fe1eafc80b0a01ef1773

Authored by Adhidarma Hadiwinoto
1 parent c79c95a37e
Exists in master

log lebih konsisten

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

... ... @@ -102,7 +102,7 @@ function isMe(id) {
102 102  
103 103 function sendMessage(destination, message) {
104 104 if (!isMe(destination)) {
105   - logger.info('Sending xmpp message', {destination: destination, message: message});
  105 + logger.info('Sending message via XMPP', {destination: destination, msg: message});
106 106 }
107 107  
108 108 xmpp.send(destination, message);
... ... @@ -140,11 +140,11 @@ xmpp.on('online', function(data) {
140 140  
141 141 xmpp.on('chat', function(from, message) {
142 142 if (isInIgnoreList(from)) {
143   - logger.verbose('Incoming message via XMPP from someone in ignore list', {from: from, message: message});
  143 + logger.verbose('Incoming message via XMPP from someone in ignore list', {from: from, msg: message});
144 144 return;
145 145 }
146 146  
147   - logger.info('Incoming message via XMPP ', {from: from, message: message});
  147 + logger.info('Incoming message via XMPP ', {from: from, msg: message});
148 148  
149 149 if (warming_up) {
150 150 logger.info('BOT masih dalam tahap warming up, abaikan pesan');