Showing 1 changed files with 5 additions and 5 deletions
+5 -5
Nasal/display.nas
... ...
@@ -271,7 +271,7 @@ var displayClass = {
271 271
                 if (contains(me.clips, e))
272 272
                     me.screenElements[e].set("clip", me.clips[e]);
273 273
                 else
274
-                    print('no defined clip for ' ~ e);
274
+                    printlog('warn', 'no defined clip for ' ~ e);
275 275
             }
276 276
             elsif (t == 'text') {
277 277
                 if (contains(me.texts, e)) {
... ...
@@ -284,11 +284,11 @@ var displayClass = {
284 284
                     if (contains(me.texts[e], 'visible'))
285 285
                         me.screenElements[e].setVisible(me.texts[e].visible);
286 286
                 }
287
-#                else
288
-#                    print('no text format for ' ~ e);
287
+                else
288
+                    printlog('debug', 'no text format for ' ~ e);
289 289
             }
290 290
             else
291
-                print('unknown method ' ~ t);
291
+                printlog('warn', 'unknown method ' ~ t);
292 292
         };
293 293
         foreach (var todo; keys(h)) {
294 294
             if (typeof(h[todo]) != 'vector') h[todo] = [ h[todo] ];
... ...
@@ -298,7 +298,7 @@ var displayClass = {
298 298
                     if (me.screenElements[id] != nil)
299 299
                         setMethod(id, todo);
300 300
                     else
301
-                        print('SVG ID ' ~ id ~ ' not found');
301
+                        printlog('warn', 'SVG ID ' ~ id ~ ' not found');
302 302
                 }
303 303
                 else
304 304
                     setMethod(id, todo);