Fix 0017441: PHP Notice generated by logging api

Fix 0017441: PHP Notice generated by logging api