summaryrefslogtreecommitdiff
path: root/fuse-httpfs
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-02-14 16:07:53 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-02-14 16:52:00 +0100
commit07d71c14e51e3333d2823bb0ea28b38af9c22949 (patch)
tree3d6898b5b76e546fb8356106bd28cc7120d9bffd /fuse-httpfs
parent4875d6229f6d782e0767fa63811f8274cb292199 (diff)
downloadfuse-httpfs-07d71c14e51e3333d2823bb0ea28b38af9c22949.tar.gz
fuse-httpfs-07d71c14e51e3333d2823bb0ea28b38af9c22949.zip
Use named logger
Diffstat (limited to 'fuse-httpfs')
-rwxr-xr-xfuse-httpfs14
1 files changed, 8 insertions, 6 deletions
diff --git a/fuse-httpfs b/fuse-httpfs
index e6a8c24..aa68cf6 100755
--- a/fuse-httpfs
+++ b/fuse-httpfs
@@ -3,7 +3,7 @@ import sys
import fuse
import logging
import argparse
-from httpfs import Config, Httpfs
+import httpfs
FORMAT = "%(threadName)s %(asctime)-15s %(levelname)s:%(name)s " + \
"%(filename)s:%(lineno)s %(message)s"
@@ -28,15 +28,17 @@ p.add_argument("--system-ca", default="/etc/ssl/certs/ca-certificates.crt",
args = vars(p.parse_args(sys.argv[1:]))
-Config.timeout = args.pop("timeout")
-Config.mountpoint = args.pop("mountpoint")
-Config.verify = args.pop("ssl")
-Config.system_ca = args.pop("system_ca")
+httpfs.Config.timeout = args.pop("timeout")
+httpfs.Config.mountpoint = args.pop("mountpoint")
+httpfs.Config.verify = args.pop("ssl")
+httpfs.Config.system_ca = args.pop("system_ca")
kwargs = {}
if not args.pop("no_foreground"):
kwargs["foreground"] = True
if args.pop("debug"):
kwargs["debug"] = True
+ print(httpfs.__name__)
+ logging.getLogger(httpfs.__name__).setLevel(logging.DEBUG)
kwargs.update(args)
-fuse = fuse.FUSE(Httpfs(), Config.mountpoint, **kwargs)
+fuse = fuse.FUSE(httpfs.Httpfs(), httpfs.Config.mountpoint, **kwargs)