Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
picomon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Heintz
picomon
Commits
78fcca71
Commit
78fcca71
authored
Aug 31, 2014
by
Jonathan Michalon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a few more debug (now that we use logging module)
parent
5c8d89c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
picomon/checks.py
picomon/checks.py
+4
-0
No files found.
picomon/checks.py
View file @
78fcca71
...
...
@@ -66,14 +66,18 @@ class Check(object):
logging
.
debug
(
'Running '
+
str
(
self
))
self
.
setup
()
if
not
self
.
check
():
logging
.
debug
(
'Fail: '
+
str
(
self
))
self
.
retry_count
=
min
(
self
.
retry_count
+
1
,
self
.
retry
)
if
self
.
retry_count
==
self
.
retry
or
immediate
:
if
self
.
ok
:
logging
.
debug
(
'Switched to failure: '
+
str
(
self
))
self
.
failure_date
=
datetime
.
now
()
self
.
ok
=
False
mails
.
send_email_for_check
(
self
)
else
:
logging
.
debug
(
'OK: '
+
str
(
self
))
if
not
self
.
ok
:
logging
.
debug
(
'Switched to ok: '
+
str
(
self
))
self
.
ok
=
True
mails
.
send_email_for_check
(
self
)
self
.
retry_count
=
0
...
...
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