Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
ef9194aa
Commit
ef9194aa
authored
Apr 28, 2015
by
gauthier
Browse files
clean stdout
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7286
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
e730b678
Changes
1
Hide whitespace changes
Inline
Side-by-side
targets/SCRIPTS/msc_gen.py
View file @
ef9194aa
...
...
@@ -86,7 +86,8 @@ def sequence_number_generator():
g_sequence_generator
=
g_sequence_generator
+
1
return
l_seq
def
file_is_empty
(
fpath
):
return
False
if
os
.
path
.
isfile
(
fpath
)
and
os
.
path
.
getsize
(
fpath
)
>
0
else
True
def
parse_oai_log_files
():
global
g_entities_dic
...
...
@@ -124,6 +125,8 @@ def parse_oai_log_files():
# we may insert diagnostic events
event_id_offset
=
0
for
filename
in
filenames
:
if
file_is_empty
(
filename
):
continue
try
:
fhandle
=
open
(
filename
,
'r'
)
fcontent
=
fhandle
.
read
()
...
...
@@ -224,7 +227,7 @@ def parse_oai_log_files():
g_messages
[
event_id
+
event_id_offset
]
=
Message
except
IOError
,
e
:
print
(
"INPUT LINE: %s "
%
line
)
print
(
"
File %s
INPUT LINE: %s "
%
(
filename
,
line
)
)
print
'err message'
#print("------------------------------------")
...
...
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