Is this logging enough? I guess we also want to print a message on the console, something like sys.stderr.write(msg).