made debuglog arg optional

Just to avoid php errors if you want to use debuglog placeholders.