fix(logger): set sys.stderr logger when in debug mode