Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logging.basicConfig(level=logging.INFO)
logging.getLogger("gcsfs.gcsfuse").setLevel(logging.DEBUG)
if verbose > 1:
logging.basicConfig(level=logging.DEBUG)
fmt = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
if verbose == 1:
logging.basicConfig(level=logging.INFO, format=fmt)
logging.getLogger("gcsfs.gcsfuse").setLevel(logging.DEBUG)
if verbose > 1:
logging.basicConfig(level=logging.DEBUG, format=fmt)
print("Mounting bucket %s to directory %s" % (bucket, mount_point))
print("foreground:", foreground, ", nothreads:", not threads)
FUSE(
GCSFS(bucket, token=token, project=project_id, nfiles=cache_files),
mount_point,
nothreads=not threads,
foreground=foreground,
)