quick refactor of forseti.log() code