def update_sink(sink_name, filter_):
 logging_client = logging.Client()
 sink = logging_client.sink(sink_name)
 sink.reload()
 sink.filter_ = filter_
 print 'Updated sink {}'.format(sink.name)
 sink.update()

def update_sink ( sink_name , filter_ ) : logging_client = logging . Client ( ) sink = logging_client . sink ( sink_name ) sink . reload ( ) sink . filter_ = filter_ print 'Updated sink {}' . format ( sink . name ) sink . update ( )
changes a sinks filter .