Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
juga
sbws
Commits
66de536b
Commit
66de536b
authored
7 years ago
by
Matt Traudt
Browse files
Options
Downloads
Patches
Plain Diff
Log more about why dir isn't initialized
parent
aeb2afa9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/globals.py
+2
-0
2 additions, 0 deletions
sbws/globals.py
with
2 additions
and
0 deletions
sbws/globals.py
+
2
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment