Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
bc70a753
Commit
bc70a753
authored
Dec 05, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neolog: do not spam the console when piped to a process that exits prematurely
parent
9bd31803
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
neo/scripts/neolog.py
neo/scripts/neolog.py
+5
-1
No files found.
neo/scripts/neolog.py
View file @
bc70a753
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
bz2
,
gzip
,
optparse
,
os
,
signal
,
sqlite3
,
time
import
bz2
,
gzip
,
errno
,
optparse
,
os
,
signal
,
sqlite3
,
sys
,
time
from
bisect
import
insort
from
bisect
import
insort
from
logging
import
getLevelName
from
logging
import
getLevelName
...
@@ -174,6 +174,10 @@ def emit_many(log_list):
...
@@ -174,6 +174,10 @@ def emit_many(log_list):
while
event
[
0
]
<=
next_date
:
while
event
[
0
]
<=
next_date
:
emit
(
*
event
)
emit
(
*
event
)
event
=
next
()
event
=
next
()
except
IOError
,
e
:
if
e
.
errno
==
errno
.
EPIPE
:
sys
.
exit
(
1
)
raise
except
StopIteration
:
except
StopIteration
:
if
not
event_list
:
if
not
event_list
:
break
break
...
...
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