From: pin Date: Wed, 12 May 2010 13:18:45 +0000 (+0000) Subject: passage en V1 du format de log. X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/commitdiff_plain/3349512a69489bc7679799d05f21fb11abaec90d?ds=sidebyside;hp=baf4f2fe0e04d6b95c428813dd920b597031ec04 passage en V1 du format de log. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@164 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/app/eventutils.py b/src/app/eventutils.py index 505455c..11e0d5c 100755 --- a/src/app/eventutils.py +++ b/src/app/eventutils.py @@ -45,7 +45,7 @@ class _EventDispatcher : try : del self.registry[eventType][listener] except KeyError : - console.warn("no listener to remove") + console.debug("no listener to remove") def dispatchEvents(self) : events = pygame.event.get() diff --git a/src/app/log.py b/src/app/log.py index e30daa9..3cffbb3 100755 --- a/src/app/log.py +++ b/src/app/log.py @@ -13,7 +13,7 @@ import pygame import logging import os import datetime -LOG_FORMAT_VERSION='1.0-alpha' +LOG_FORMAT_VERSION='1.0' hiddenEvents = {pygame.MOUSEMOTION:True, pygame.MOUSEBUTTONDOWN:True, diff --git a/src/app/logfilereader.py b/src/app/logfilereader.py index 9955623..2df5653 100755 --- a/src/app/logfilereader.py +++ b/src/app/logfilereader.py @@ -13,7 +13,7 @@ from synth import Synth from musicxml import musicXml2Song import pygame -SUPPORTED_FILE_HEADER = 'ENV winwii log format version : 1.0-alpha' +SUPPORTED_FILE_HEADER = 'ENV winwii log format version : 1.0' class LogFileReader(object) : diff --git a/src/app/minwii.py b/src/app/minwii.py index 2475d66..55ea722 100755 --- a/src/app/minwii.py +++ b/src/app/minwii.py @@ -40,7 +40,7 @@ class MinWii(object): from pywiiuse import pygame_wiimouse pygame_wiimouse.init(4, 5, self.screenResolution) # look for 4, wait 5 seconds self.nwiimotes = nwiimotes = pygame_wiimouse.get_count() - console.debug('%d wiimotes found', nwiimotes) + console.debug('wiimotes found : %d', nwiimotes) self.WT = WT = pygame_wiimouse.WT WT.pause() else : @@ -87,7 +87,7 @@ class MinWii(object): #logging if home.exitApp : - console.info("sortie de l'application") + console.debug("sortie de l'application") else : actual_wiimotes = self.WT.get_count() if self.firstSong : diff --git a/src/app/synth.py b/src/app/synth.py index 469fd04..c1faee7 100755 --- a/src/app/synth.py +++ b/src/app/synth.py @@ -35,11 +35,11 @@ class Synth(FSynth) : self.start() self.fsid = self.sfload(sfPath) self._octaveAjusts = {} - console.info('démarrage du synthétiseur') + console.debug('démarrage du synthétiseur') envLogger.info('soundfont : %s', sfPath) def __del__(self) : - console.info('arrêt du synthétiseur') + console.debug('arrêt du synthétiseur') self.delete() def adjust_octave(self, chan, octave) :