fix storing files at dataDirectory
This commit is contained in:
parent
648d754556
commit
55d8c00658
2 changed files with 72 additions and 57 deletions
|
|
@ -29,11 +29,17 @@ angular
|
|||
$delegate[level] = function() {
|
||||
var args = [].slice.call(arguments);
|
||||
args = args.map(function(v) {
|
||||
if (typeof v == 'undefined') v = 'undefined';
|
||||
if (typeof v == 'object') {
|
||||
v = JSON.stringify(v);
|
||||
if (v.length > 200)
|
||||
try {
|
||||
if (typeof v == 'undefined') v = 'undefined';
|
||||
if (typeof v == 'object') {
|
||||
v = JSON.stringify(v);
|
||||
}
|
||||
v = v.toString();
|
||||
if (v.length > 200)
|
||||
v = v.substr(0, 197) + '...';
|
||||
} catch (e) {
|
||||
console.log('Error at log decorator:', e);
|
||||
v = 'undefined';
|
||||
}
|
||||
return v;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue