make error log after dropping privileges