liblog: return -EPERM if a log_is_loggable() returns false

This was the previous behavior, so retain it.

Bug: 119867234
Test: logging unit tests
Change-Id: I088f760cc274a4a42d72477eb4e2e8d23c613a8a
1 file changed
tree: c480a1aa9c0fcb35c05bd26fc3fe89d4f945729f
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/