Ignore:
Timestamp:
Dec 14, 2010 6:58:28 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
c092b7f
Parents:
2627eb3
Message:

Move proofs around. Lots of changes, including fault handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_spewlog.py

    r2627eb3 re83f2f2  
    44import time
    55
     6from federation.proof import proof
    67from federation.remote_service import service_caller
    78from federation.client_lib import client_opts, exit_with_fault, RPCException, \
     
    6364                caller=service_caller('Info'), responseBody="InfoResponseBody")
    6465    except RPCException, e:
    65         exit_with_fault(e)
     66        exit_with_fault(e, 'Info (spewlog)', opts)
    6667    except RuntimeError, e:
    6768        sys.exit("Error processing RPC: %s" % e)
     69
     70    proof = proof.from_dict(resp_dict.get('proof', {}))
     71    if proof and opts.auth_log:
     72        log_authentication(opts.auth_log, 'Info (spewlog)', 'succeeded', proof)
    6873
    6974    if not opts.serialize_only:
Note: See TracChangeset for help on using the changeset viewer.