Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
66de536b
Commit
66de536b
authored
Apr 20, 2018
by
Matt Traudt
Browse files
Log more about why dir isn't initialized
parent
aeb2afa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/globals.py
View file @
66de536b
...
...
@@ -25,6 +25,7 @@ SOCKET_TIMEOUT = 60 # seconds
def
is_initted
(
d
):
if
not
os
.
path
.
isdir
(
d
):
log
.
debug
(
'%s not initialized: %s doesn
\'
t exist'
,
d
,
d
)
return
False
conf_fnames
=
[
os
.
path
.
join
(
d
,
'config.ini'
),
os
.
path
.
join
(
d
,
'config.log.ini'
)]
...
...
@@ -32,6 +33,7 @@ def is_initted(d):
if
not
os
.
path
.
isfile
(
fname
):
log
.
debug
(
'%s not initialized: missing %s'
,
d
,
fname
)
return
False
log
.
debug
(
'%s seems initialized.'
,
d
)
return
True
...
...
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