Commit 23c3b2fe authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Comment out debugging for now...

parent c0eebb51
......@@ -122,7 +122,7 @@ class Server:
pos = buf.find(b'\x00')
if pos == -1:
tmp = s.recv(4096)
print('Got:', len(tmp), file=sys.stderr)
#print('Got:', len(tmp), file=sys.stderr)
if len(tmp) == 0:
if len(buf) == 0:
return
......@@ -139,7 +139,7 @@ class Server:
arcname = path.decode('utf8', errors='surrogateescape')
try:
full_path = os.path.join(cwd, arcname)
print('Add:', arcname, full_path, file=sys.stderr)
#print('Add:', arcname, full_path, file=sys.stderr)
writer.add(full_path, arcname=arcname)
except FileNotFoundError:
self.log.MESSAGE("File disappeared '%s'" % full_path)
......
......@@ -140,9 +140,9 @@ class Backup:
while len(parent) != 0:
# Make sure directories get the correct modes
if last_parent.startswith(parent):
print('Break at:', parent, file=sys.stderr)
#print('Break at:', parent, file=sys.stderr)
break
print('Parent:', parent, file=sys.stderr)
#print('Parent:', parent, file=sys.stderr)
self.primary_in.write(parent + b'\0')
self.primary_in.flush()
parent = os.path.dirname(parent)
......@@ -151,7 +151,7 @@ class Backup:
def add(self, src):
self.log.DEBUG('Add:', src.name)
print('File:', src.name, file=sys.stderr)
#print('File:', src.name, file=sys.stderr)
self.add_parents(src)
self.primary_in.write(src.name + b'\0')
self.primary_in.flush()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment