Commit 35af4403 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.
parents 3e85ce06 c1699802
......@@ -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() {
......
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