piranna / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

logging instructions does not works with tahoe-lafs backend #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Mount tahoe with fuse, mount script looks like following:
#!/usr/bin/env python

import logging
import sys

from fs.contrib.tahoelafs import TahoeLAFS
from fs.expose import fuse

MOUNT_POINT="/mnt/tahoe"
DIR_CAP="URI:DIR2:XXX"

fs = TahoeLAFS(DIR_CAP)
mp = fuse.mount(fs, MOUNT_POINT)

2. Follow logging instructions from here: 
http://packages.python.org/fs/contrib/tahoelafs.html, copy-paste logging code 
before creating fs object.

Expected: lots of debug messages to stdout or log file (I've also tried file 
handlers).

Actual result: no logging.

pyfilesystem 0.4.1 (latest svn rev), python 2.7, linux x86_64

Original issue reported on code.google.com by vladi...@greenmice.info on 26 Dec 2011 at 7:36

GoogleCodeExporter commented 9 years ago
Ok, logging actually works, but only if mounted in foreground mode. Is there 
any way to mount in background and still have some logs if FileHandler?

Original comment by vladi...@greenmice.info on 26 Dec 2011 at 7:56