Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ops
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangwei
ops
Commits
d3cb7910
Commit
d3cb7910
authored
Jul 03, 2017
by
zhangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决升级后,报警出现误报的情况
parent
3dd10ebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
comm.py
cms_log/cms_log/util/comm.py
+1
-1
No files found.
cms_log/cms_log/util/comm.py
View file @
d3cb7910
...
@@ -61,7 +61,7 @@ def analysis_log(log_file, project_name, tmp_dir, check_string):
...
@@ -61,7 +61,7 @@ def analysis_log(log_file, project_name, tmp_dir, check_string):
if
project_name
==
'php'
:
if
project_name
==
'php'
:
cmd_line
=
"grep -a "
+
check_string
+
" "
+
log_file
+
" > "
+
new_tmp_file
cmd_line
=
"grep -a "
+
check_string
+
" "
+
log_file
+
" > "
+
new_tmp_file
os
.
system
(
cmd_line
)
os
.
system
(
cmd_line
)
if
exist_file
(
old_tmp_file
):
if
exist_file
(
old_tmp_file
)
and
os
.
path
.
getsize
(
new_tmp_file
)
>
1
:
cmd_line
=
"diff "
+
old_tmp_file
+
" "
+
new_tmp_file
cmd_line
=
"diff "
+
old_tmp_file
+
" "
+
new_tmp_file
diff_arr
=
os
.
popen
(
cmd_line
)
.
readlines
()
diff_arr
=
os
.
popen
(
cmd_line
)
.
readlines
()
new_error_num
=
len
(
diff_arr
)
new_error_num
=
len
(
diff_arr
)
...
...
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