Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
4581fa7f
Commit
4581fa7f
authored
Oct 28, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resetup logging after setting up Tee in pronterface
parent
c6c0dbe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pronterface.py
printrun/pronterface.py
+3
-1
No files found.
printrun/pronterface.py
View file @
4581fa7f
...
@@ -28,7 +28,8 @@ import subprocess
...
@@ -28,7 +28,8 @@ import subprocess
import
shlex
import
shlex
import
glob
import
glob
from
printrun.printrun_utils
import
install_locale
,
RemainingTimeEstimator
from
printrun.printrun_utils
import
install_locale
,
\
RemainingTimeEstimator
,
setup_logging
install_locale
(
'pronterface'
)
install_locale
(
'pronterface'
)
try
:
try
:
...
@@ -70,6 +71,7 @@ class Tee(object):
...
@@ -70,6 +71,7 @@ class Tee(object):
def
__init__
(
self
,
target
):
def
__init__
(
self
,
target
):
self
.
stdout
=
sys
.
stdout
self
.
stdout
=
sys
.
stdout
sys
.
stdout
=
self
sys
.
stdout
=
self
setup_logging
(
sys
.
stdout
)
self
.
target
=
target
self
.
target
=
target
def
__del__
(
self
):
def
__del__
(
self
):
...
...
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