Explorar o código

using logger info but error

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
7b3757a4f5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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');
 };