Mercurial > projects > mde
comparison mde/setup/Init.d @ 173:a1ba9157510e
Enabled ServiceContentList to call its callbacks when its value changes. Tried to fix some other bugs, but this is not a very clean commit, due to wanting to make some big changes to enable better use of invariants next.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 08 Aug 2009 15:53:10 +0200 |
parents | e45226d3deae |
children | 62aa8845edd2 |
comparison
equal
deleted
inserted
replaced
172:0dd49f333189 | 173:a1ba9157510e |
---|---|
344 } | 344 } |
345 debug logger.trace ("({}) InitStage {}: completed; state: {}", threadNum, stage.name, stage.state); | 345 debug logger.trace ("({}) InitStage {}: completed; state: {}", threadNum, stage.name, stage.state); |
346 } catch (InitStageException e) { | 346 } catch (InitStageException e) { |
347 debug logger.error ("({}) InitStage {}: failed: "~e.msg, threadNum, stage.name); | 347 debug logger.error ("({}) InitStage {}: failed: "~e.msg, threadNum, stage.name); |
348 else logger.error ("InitStage {}: failed: "~e.msg, stage.name); | 348 else logger.error ("InitStage {}: failed: "~e.msg, stage.name); |
349 stage.state = e.state; | 349 e.writeOut(delegate void(char[]s){ Cerr(s); }); |
350 stage.state = e.state; | |
350 doneInit = STATE.ABORT; | 351 doneInit = STATE.ABORT; |
351 break threadLoop; | 352 break threadLoop; |
352 } catch (Exception e) { | 353 } catch (Exception e) { |
353 debug logger.error ("({}) InitStage {}: failed: "~e.msg, threadNum, stage.name); | 354 debug logger.error ("({}) InitStage {}: failed: "~e.msg, threadNum, stage.name); |
354 else logger.error ("InitStage {}: failed: "~e.msg, stage.name); | 355 else logger.error ("InitStage {}: failed: "~e.msg, stage.name); |
355 doneInit = STATE.ABORT; | 356 e.writeOut(delegate void(char[]s){ Cerr(s); }); |
357 doneInit = STATE.ABORT; | |
356 break threadLoop; | 358 break threadLoop; |
357 } | 359 } |
358 } | 360 } |
359 } catch (Exception e) { | 361 } catch (Exception e) { |
360 logger.fatal ("Exception in initThreadFct: "~e.msg); | 362 logger.fatal ("Exception in initThreadFct: "~e.msg); |