{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10496","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10496/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10496/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10496/events","html_url":"https://github.com/yiisoft/yii2/issues/10496","id":124082112,"number":10496,"title":"MongoDB, MongoDbTarget, text of message as an \\Exception","user":{"login":"AstRonin","id":2378239,"avatar_url":"https://avatars.githubusercontent.com/u/2378239?v=3","gravatar_id":"","url":"https://api.github.com/users/AstRonin","html_url":"https://github.com/AstRonin","followers_url":"https://api.github.com/users/AstRonin/followers","following_url":"https://api.github.com/users/AstRonin/following{/other_user}","gists_url":"https://api.github.com/users/AstRonin/gists{/gist_id}","starred_url":"https://api.github.com/users/AstRonin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AstRonin/subscriptions","organizations_url":"https://api.github.com/users/AstRonin/orgs","repos_url":"https://api.github.com/users/AstRonin/repos","events_url":"https://api.github.com/users/AstRonin/events{/privacy}","received_events_url":"https://api.github.com/users/AstRonin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/feature:mongodb","name":"feature:mongodb","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/16","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.8","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/16/labels","id":1242959,"number":16,"title":"2.0.8","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":1,"state":"open","created_at":"2015-08-05T22:18:21Z","updated_at":"2015-12-28T20:06:27Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-12-28T15:39:12Z","updated_at":"2015-12-29T07:03:53Z","closed_at":null,"body":"Hi all,\r\n\r\nCan we add condition in method `yii\\mongodb\\log\\MongoDbTarget::export()` like it is in? \r\nhttps://github.com/yiisoft/yii2/blob/master/framework/log/DbTarget.php#L71\r\n```php\r\nif ($text instanceof \\Exception) {\r\n    $text = (string) $text;\r\n} else {\r\n    $text = VarDumper::export($text);\r\n}\r\n```\r\nBecause VarDumper making very big info if it a Exception stacktrace"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/167735337","html_url":"https://github.com/yiisoft/yii2/issues/10496#issuecomment-167735337","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10496","id":167735337,"user":{"login":"AstRonin","id":2378239,"avatar_url":"https://avatars.githubusercontent.com/u/2378239?v=3","gravatar_id":"","url":"https://api.github.com/users/AstRonin","html_url":"https://github.com/AstRonin","followers_url":"https://api.github.com/users/AstRonin/followers","following_url":"https://api.github.com/users/AstRonin/following{/other_user}","gists_url":"https://api.github.com/users/AstRonin/gists{/gist_id}","starred_url":"https://api.github.com/users/AstRonin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AstRonin/subscriptions","organizations_url":"https://api.github.com/users/AstRonin/orgs","repos_url":"https://api.github.com/users/AstRonin/repos","events_url":"https://api.github.com/users/AstRonin/events{/privacy}","received_events_url":"https://api.github.com/users/AstRonin/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T07:03:53Z","updated_at":"2015-12-29T07:03:53Z","body":"Can I ask other question about this function `MongoDbTarget::export()`?\r\nWhy we don't use `batchinsert` in this function?\r\nhttp://php.net/manual/ru/mongocollection.batchinsert.php\r\nWe can avoiding the costs of network"}}