Commit c4f420ea authored by Guillaume Seguin's avatar Guillaume Seguin

Start using logging module instead of prints

parent 4420ab96
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
import time import time
import numpy import numpy
import math import math
import sys import logging
from pyglet.gl import * from pyglet.gl import *
from pyglet import gl from pyglet import gl
...@@ -247,8 +247,8 @@ class GcodeModel(Model): ...@@ -247,8 +247,8 @@ class GcodeModel(Model):
t_end = time.time() t_end = time.time()
print >> sys.stderr, _('Initialized 3D visualization in %.2f seconds') % (t_end - t_start) logging.log(logging.INFO, _('Initialized 3D visualization in %.2f seconds') % (t_end - t_start))
print >> sys.stderr, _('Vertex count: %d') % len(self.vertices) logging.log(logging.INFO, _('Vertex count: %d') % len(self.vertices))
def copy(self): def copy(self):
copy = GcodeModel() copy = GcodeModel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment