Sfoglia il codice sorgente

using logger info but error

kaori 4 anni fa
parent
commit
7b3757a4f5
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      packages/app/src/server/events/notification.ts

+ 2 - 2
packages/app/src/server/events/notification.ts

@@ -14,8 +14,8 @@ function NotificationEvent(crowi) {
 util.inherits(NotificationEvent, events.EventEmitter);
 
 
-NotificationEvent.prototype.onUpdate = function(page, user) {
-  logger.error('onUpdate event fired');
+NotificationEvent.prototype.onUpdate = function(user) {
+  logger.info('onUpdate event fired');
 };