Improve error logging and add automatic obfuscation prefix