Fix: bad ret value check for default logging

Signed-off-by: David Goulet <dgoulet@ev0ke.net>