Fixed parameter order in error log calls.