Move set_up_logging to the front (#130).

When the repo is instantiated, custom cmdb code might use logging,
so logging should already be configured. This at least seems to fix the second point of #130.