Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
hash_backup
Commits
6e592645
Commit
6e592645
authored
Jan 07, 2021
by
Anders Blomdell
Browse files
Improve logging
parent
5491e08c
Changes
2
Hide whitespace changes
Inline
Side-by-side
primary.py
View file @
6e592645
...
...
@@ -121,6 +121,7 @@ class Server:
stderr
=
self
.
log
.
makefile
(
encoding
=
'utf-8'
))
self
.
log
.
DEBUG
(
'OK run_star'
,
cmd
,
cwd
)
finally
:
self
.
log
.
MESSAGE
(
'shutting down star_socket'
)
star_socket
.
shutdown
(
socket
.
SHUT_RDWR
)
self
.
log
.
DEBUG
(
'DONE run_star'
,
cmd
,
cwd
)
...
...
secondary.py
View file @
6e592645
...
...
@@ -131,6 +131,7 @@ class Backup:
self
.
primary_in
.
write
(
parent
+
b
'
\0
'
)
parent
=
os
.
path
.
dirname
(
parent
)
self
.
primary_in
.
write
(
src
.
name
+
b
'
\0
'
)
self
.
primary_in
.
flush
()
def
delete
(
self
,
dst
):
self
.
log
.
DEBUG
(
'Delete:'
,
dst
.
name
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment