Commit 8c593c79 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #100 in ZP/z-push from...

Merge pull request #100 in ZP/z-push from feature/ZP-782-log-file-and-line-in-zpushexception to develop

* commit 'c1699802':
  ZP-782 log file and line in ZPushException.

(cherry picked from commit 35af4403)
parent a9cded41
......@@ -55,8 +55,8 @@ class ZPushException extends Exception {
if (!$logLevel)
$logLevel = $this->defaultLogLevel;
ZLog::Write($logLevel, get_class($this) .': '. $message . ' - code: '.$code, false);
parent::__construct($message, (int) $code);
ZLog::Write($logLevel, get_class($this) .': '. $message . ' - code: '.$code. ' - file: '. $this->getFile().':'.$this->getLine(), false);
}
public function getHTTPCodeString() {
......@@ -71,4 +71,4 @@ class ZPushException extends Exception {
return $this->showLegal;
}
}
?>
\ No newline at end of file
?>
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