Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
a126e709
Commit
a126e709
authored
Aug 16, 2021
by
Kirill Smelkov
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X wcfs: Put client log into its own logger
parent
20d05d66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
wcfs/__init__.py
wcfs/__init__.py
+5
-5
No files found.
wcfs/__init__.py
View file @
a126e709
...
...
@@ -67,7 +67,7 @@ The following environment variables can be used to control wcfs.py client:
from
__future__
import
print_function
,
absolute_import
import
os
,
sys
,
hashlib
,
subprocess
,
stat
import
logging
as
log
import
logging
;
log
=
logging
.
getLogger
(
'wcfs'
)
from
os.path
import
dirname
from
stat
import
S_ISDIR
from
errno
import
ENOENT
,
ENOTCONN
,
EEXIST
...
...
@@ -291,7 +291,7 @@ def _optv_with_wcfs_defaults(optv): # -> optv
def
_start
(
zurl
,
*
optv
):
# -> Server, fwcfs
mntpt
=
_mntpt_4zurl
(
zurl
)
optv
=
_optv_with_wcfs_defaults
(
optv
)
log
.
info
(
"
wcfs:
starting for %s ..."
,
zurl
)
log
.
info
(
"starting for %s ..."
,
zurl
)
# XXX errctx "wcfs: start"
...
...
@@ -332,7 +332,7 @@ def _start(zurl, *optv): # -> Server, fwcfs
wg
.
go
(
_
)
wg
.
wait
()
log
.
info
(
"
wcfs:
started pid%d @ %s"
,
wcsrv
.
_proc
.
pid
,
mntpt
)
log
.
info
(
"started pid%d @ %s"
,
wcsrv
.
_proc
.
pid
,
mntpt
)
fwcfs
=
wcsrv
.
_fwcfs
del
wcsrv
.
_fwcfs
...
...
@@ -398,7 +398,7 @@ def _stop(wcsrv, ctx, _onstuck=None):
@
func
(
Server
)
def
__stop
(
wcsrv
,
ctx
,
_onstuck
):
log
.
info
(
"
wcfs:
unmount/stop wcfs pid%d @ %s"
,
wcsrv
.
_proc
.
pid
,
wcsrv
.
mountpoint
)
log
.
info
(
"unmount/stop wcfs pid%d @ %s"
,
wcsrv
.
_proc
.
pid
,
wcsrv
.
mountpoint
)
deadline
=
ctx
.
deadline
()
if
deadline
is
None
:
...
...
@@ -658,7 +658,7 @@ def _ready(ch):
def
serve
(
zurl
,
optv
,
exec_
=
False
,
_tstartingq
=
None
):
mntpt
=
_mntpt_4zurl
(
zurl
)
optv
=
_optv_with_wcfs_defaults
(
optv
)
log
.
info
(
"
wcfs:
serving %s ..."
,
zurl
)
log
.
info
(
"serving %s ..."
,
zurl
)
# try opening .wcfs - it is an error if we can do it.
fwcfs
,
trylockstartf
=
_try_attach_wcsrv
(
mntpt
)
...
...
Kirill Smelkov
@kirr
mentioned in commit
58e2a88c
·
Oct 27, 2021
mentioned in commit
58e2a88c
mentioned in commit 58e2a88c7261ddeefb603bff6ffb2dcd9468bc86
Toggle commit list
Kirill Smelkov
@kirr
mentioned in commit
e3f2ee2d
·
Oct 28, 2021
mentioned in commit
e3f2ee2d
mentioned in commit e3f2ee2d7f18d5718817fd3a6e098b126946bbbc
Toggle commit list
Write
Preview
Markdown
is supported
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