hey there tappers, how do I do some.. safe logging...
# singer-tap-development
e
hey there tappers, how do I do some.. safe logging while the tap is running? I realize my usual
print
method causes meltano or the singer spec to think I am outputting SQL data.. so I've erased everything.. but it would be nice to know for these long long jobs how far I am been looking over https://sdk.meltano.com/en/latest/implementation/README.html but not seeing anything about info or debug logging that can play nice with production I've got a tap running for 17 hours and it'd help to know if I can just.. print out where in the list of my queries am i
v
if you're using the sdk
Copy code
<http://self.logger.info|self.logger.info>("log")
not the greatest but it work for a quick log!
e
perfect, yes! Seems this needs to be documented so others don't start `print()`ing everything.. I'd wonder who I can maybe approach to start a how-to
or I just didn't see it, perhaps
v
Started https://gitlab.com/meltano/sdk/-/issues/170 a while back, I think it's similar!
e
interesting you've got PII data issues there as well
at our place we're leaning on immuta but.. I still haven't had chance to demo meltano PoC.. wanted it working locally first and maybe share the way i instantiate it with an office hour/demo
v
Mainly it's just about stderr shouldn't have PII, I think Immuta is a different thing, but I honestly don't know Immuta
You should totally share Meltano 😄 It's great Took a quick look at Immuta I don't understand what it does, seems like a data ingestion tool, catalog tool, and sharing tool?
e
we are using it for access .. and PII masking.. and I wonder outloud if / how that would work with the taps.. guessing it would modify the query the tap executes .. but is that capability out of the box
v
Access - You could use that catalog that's generated, but you'd need a layer above what already exists (and you'd need enforcement of that somehow), seems a lot better to put all the data into a warehouse, with the catalog, use that data to tell the warehouse who should have access to what with a tool like that. Putting it at the meltano level feels wrong but what do I know!
PII Masking - Curious but PII shouldn't be in your err logs is the idea, would be interesting but how accurate can you really be with PII masking