Skip to content

Commit 06881df

Browse files
1.3.0 stable
1 parent 10f8754 commit 06881df

3 files changed

Lines changed: 4 additions & 24 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Change log
22

3-
## 1.3.0 - 2017-07-26
3+
## 1.3.0 - 2017-08-24
44
### Changed
5-
* Smart exception handling.
5+
* Exception handling refactoring.
66
* Unsupported HHMV.
77

88
## 1.2.1 - 2017-01-28

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2015 — 2016 Notamedia Ltd. (http://nota.media)
3+
Copyright © 2015 — 2017 Notamedia Ltd. (http://nota.media)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/SentryTarget.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -99,27 +99,7 @@ public function export()
9999
$data['extra'] = call_user_func($this->extraCallback, $text, $data['extra']);
100100
}
101101

102-
if (isset($data['extra']) && $exception = $this->extractException($data['extra'])) {
103-
$this->client->captureException($exception, $data);
104-
} else {
105-
$this->client->capture($data, $traces);
106-
}
107-
}
108-
}
109-
110-
/**
111-
* Take and remove the exception out of context of the message.
112-
*
113-
* @param array $extra Extra data from message.
114-
* @return null|\Throwable|\Exception
115-
*/
116-
protected function extractException(array &$extra)
117-
{
118-
foreach ($extra as $key => $value) {
119-
if ($value instanceof \Throwable || $value instanceof \Exception) {
120-
unset($extra[$key]);
121-
return $value;
122-
}
102+
$this->client->capture($data, $traces);
123103
}
124104
}
125105

0 commit comments

Comments
 (0)