diff mde/events.d @ 24:32eff0e01c05

Only locally-changed options are stored in user-config now. Log levels revised. Options sub-classes are handled more generically and can be added without changing the Options class. Options changed at run-time are tracked, and on exit merged with user options and saved. Revised log levels as set out in policies.txt and as used in code. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 27 Mar 2008 16:15:21 +0000
parents 47478557428d
children 2c28ee04a4ed
line wrap: on
line diff
--- a/mde/events.d	Thu Mar 27 10:58:57 2008 +0000
+++ b/mde/events.d	Thu Mar 27 16:15:21 2008 +0000
@@ -39,7 +39,7 @@
 }
 
 void initInput () { // init2 func
-    logger.trace ("init2: initInput() started");
+    debug logger.trace ("init2: initInput() started");
     
     try {
         global.input = new Input();
@@ -48,7 +48,7 @@
         setInitFailure ();                // must clean up properly
     }
     
-    logger.trace ("init2: initInput() finished");
+    debug logger.trace ("init2: initInput() finished");
 }
 
 void pollEvents (double) {
@@ -71,8 +71,8 @@
                 try {
                     global.input (event);
                 } catch (InputClassException e) {
-                    logger.warn ("Caught input exception; event will be ignored. Exception was:");
-                    logger.warn (e.msg);
+                    logger.error ("Caught input exception; event will be ignored. Exception was:");
+                    logger.error (e.msg);
                 }
         }
     }