kopia lustrzana https://github.com/c9/core
Fix logging
rodzic
b8acdc4882
commit
bb873bebbd
|
@ -14,6 +14,8 @@ function plugin(options, imports, register) {
|
|||
var raygun = imports.raygun;
|
||||
|
||||
function error(err, customData, user) {
|
||||
if (typeof err == "string")
|
||||
err = new Error(err);
|
||||
if (typeof err === "string") {
|
||||
err = new Error(err);
|
||||
}
|
||||
|
@ -22,6 +24,8 @@ function plugin(options, imports, register) {
|
|||
}
|
||||
|
||||
function warn(err, customData, user) {
|
||||
if (typeof err == "string")
|
||||
err = new Error(err);
|
||||
raygun.warningClient.setUser(user);
|
||||
raygun.warningClient.send(err, customData);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue