Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Justin
slapos.toolbox
Commits
c479a713
Commit
c479a713
authored
May 12, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promise/check_error_on_apache_log: Skip if log is not there anymore.
parent
67777da8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
slapos/promise/check_error_on_apache_log/__init__.py
slapos/promise/check_error_on_apache_log/__init__.py
+4
-0
No files found.
slapos/promise/check_error_on_apache_log/__init__.py
View file @
c479a713
...
@@ -12,6 +12,10 @@ def test(log_file, maximum_delay):
...
@@ -12,6 +12,10 @@ def test(log_file, maximum_delay):
network_is_unreacheable
=
0
network_is_unreacheable
=
0
timeout
=
0
timeout
=
0
parsing_failure
=
0
parsing_failure
=
0
if
not
os
.
path
.
exists
(
log_file
):
# file don't exist, nothing to check
return
"OK"
with
open
(
log_file
)
as
f
:
with
open
(
log_file
)
as
f
:
f
.
seek
(
0
,
2
)
f
.
seek
(
0
,
2
)
...
...
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