Commit 6e1b5ccf authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

database.js: update log levels

parent 2b8de937
......@@ -426,7 +426,7 @@ Database.prototype = {
},
error: function (request, status, error) {
if (status === "timeout") {
console.log({"type": "flash", "default" : "database_timeout", "msg" : " - unable to access patient data" , "priority": 1});
console.log({"type": "flash", "default" : "database_timeout", "msg" : " - unable to access patient data" , "priority": 2});
} else {
console.log({"type": "popup", "msg": request.responseText});
}
......@@ -483,7 +483,7 @@ Database.prototype = {
error: function (request, status, error) {
self.m.resume()
if (status === "timeout") {
console.log({"type": "flash", "default" : "database_timeout", "msg": " - unable to access patient data" , "priority": 1});
console.log({"type": "flash", "default" : "database_timeout", "msg": " - unable to access patient data" , "priority": 2});
} else {
console.log({"type": "popup", "msg": request.responseText});
}
......@@ -506,7 +506,7 @@ Database.prototype = {
},
error: function (request, status, error) {
if (status === "timeout") {
console.log({"type": "flash", "default" : "database_timeout", "msg": " - unable to access patient data" , "priority": 1});
console.log({"type": "flash", "default" : "database_timeout", "msg": " - unable to access patient data" , "priority": 2});
} else {
console.log({"type": "popup", "msg": request.responseText});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment