Commit 1784c315 authored by Manfred Kutas's avatar Manfred Kutas

ZP-250 Improve log messages in readPropStream.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 9b8e68e3
...@@ -393,11 +393,11 @@ class MAPIUtils { ...@@ -393,11 +393,11 @@ class MAPIUtils {
$stream = mapi_openproperty($message, $prop, IID_IStream, 0, 0); $stream = mapi_openproperty($message, $prop, IID_IStream, 0, 0);
$ret = mapi_last_hresult(); $ret = mapi_last_hresult();
if ($ret == MAPI_E_NOT_FOUND) { if ($ret == MAPI_E_NOT_FOUND) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("MAPIUtils->readPropStream: property 0x%s not found. It is either empty or not set. It will be ignored.", str_pad(dechex($prop), 8, 0, STR_PAD_LEFT))); ZLog::Write(LOGLEVEL_DEBUG, sprintf("MAPIUtils->readPropStream: property 0x%08X not found. It is either empty or not set. It will be ignored.", $prop));
return ""; return "";
} }
elseif ($ret) { elseif ($ret) {
ZLog::Write(LOGLEVEL_ERROR, "MAPIUtils->readPropStream error opening stream: 0X%X", $ret); ZLog::Write(LOGLEVEL_ERROR, "MAPIUtils->readPropStream error opening stream: 0x%08X", $ret);
return ""; return "";
} }
$data = ""; $data = "";
......
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