X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/1be063fca4e4b517ec4d4c0d8703a3f6be1cf049..da4772c4e54467920d642e2a792c5d16d3b7bf33:/tools/helpers/logging.py?ds=inline diff --git a/tools/helpers/logging.py b/tools/helpers/logging.py index 094bf82..768f2bf 100644 --- a/tools/helpers/logging.py +++ b/tools/helpers/logging.py @@ -69,6 +69,10 @@ def init(args): dir = os.path.dirname(args.log) if os.path.exists(dir): setattr(args, "logfd", open(args.log, "a+")) + try: + os.chmod(args.log, 0o666) + except PermissionError: + pass else: setattr(args, "logfd", open(os.devnull, "a+")) if args.action != "init":