Skip to content
Snippets Groups Projects
Commit 6e592645 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Improve logging

parent 5491e08c
Branches
No related tags found
No related merge requests found
...@@ -121,6 +121,7 @@ class Server: ...@@ -121,6 +121,7 @@ class Server:
stderr=self.log.makefile(encoding='utf-8')) stderr=self.log.makefile(encoding='utf-8'))
self.log.DEBUG('OK run_star', cmd, cwd) self.log.DEBUG('OK run_star', cmd, cwd)
finally: finally:
self.log.MESSAGE('shutting down star_socket')
star_socket.shutdown(socket.SHUT_RDWR) star_socket.shutdown(socket.SHUT_RDWR)
self.log.DEBUG('DONE run_star', cmd, cwd) self.log.DEBUG('DONE run_star', cmd, cwd)
......
...@@ -131,6 +131,7 @@ class Backup: ...@@ -131,6 +131,7 @@ class Backup:
self.primary_in.write(parent + b'\0') self.primary_in.write(parent + b'\0')
parent = os.path.dirname(parent) parent = os.path.dirname(parent)
self.primary_in.write(src.name + b'\0') self.primary_in.write(src.name + b'\0')
self.primary_in.flush()
def delete(self, dst): def delete(self, dst):
self.log.DEBUG('Delete:', dst.name) self.log.DEBUG('Delete:', dst.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment