Permalink
Browse files

Fix error logging for pzh session handler.

Wrong log type string prevented error messages from being logged.

Jira-issue: WP-48
  • Loading branch information...
1 parent fe19255 commit 57daebdc5671ac3c054cc3a08f2c612a53fcf428 @aldafu aldafu committed May 4, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 webinos/pzh/lib/pzh_sessionHandling.js
@@ -138,7 +138,7 @@
log(self.sessionId, 'INFO', '[PZH -'+ self.sessionId+'] Client ' + address + ' is not connected');
}
} catch(err) {
- log(self.sessionId, 'ERROR ','[PZH -'+ self.sessionId+'] Exception in sending packet ' + err);
+ log(self.sessionId, 'ERROR','[PZH -'+ self.sessionId+'] Exception in sending packet ' + err);
}
};
@@ -181,7 +181,7 @@
var text = decodeURIComponent(cn);
data = text.split(':');
} catch(err) {
- log(self.sessionId, 'ERROR ','[PZH -'+self.sessionId+'] Exception in reading common name of peer PZH certificate ' + err);
+ log(self.sessionId, 'ERROR','[PZH -'+self.sessionId+'] Exception in reading common name of peer PZH certificate ' + err);
return;
}
/**
@@ -192,7 +192,7 @@
try {
pzhId = data[1];
} catch (err1) {
- log(self.sessionId, 'ERROR ','[PZH -'+self.sessionId+'] Pzh information in certificate is in unrecognized format ' + err1);
+ log(self.sessionId, 'ERROR','[PZH -'+self.sessionId+'] Pzh information in certificate is in unrecognized format ' + err1);
return;
}
@@ -220,7 +220,7 @@
try {
sessionId = self.sessionId+'/'+data[1];
} catch(err1) {
- log(self.sessionId, 'ERROR ','[PZH -' + self.sessionId + '] Exception in reading common name of PZP certificate ' + err1);
+ log(self.sessionId, 'ERROR','[PZH -' + self.sessionId + '] Exception in reading common name of PZP certificate ' + err1);
return;
}
@@ -319,7 +319,7 @@
});
} catch (err) {
- log(self.sessionId, 'ERROR ', '[PZH -'+self.sessionId+'] Error Signing Client Certificate' + err);
+ log(self.sessionId, 'ERROR', '[PZH -'+self.sessionId+'] Error Signing Client Certificate' + err);
cb.call(self, "Could not create client certificate");
}
}

0 comments on commit 57daebd

Please sign in to comment.