diff options
| author | P. Christeas <p_christ@hol.gr> | 2009-01-31 13:48:35 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2009-01-31 13:48:35 +0200 |
| commit | 2ae98f03c9d9afee5fca4bec7bd005d0392d873e (patch) | |
| tree | 9edf73a7a7f59cc931949a0a0262c91605377122 /bin | |
| parent | 03c835af30d17474a84efda8e87e7dcbe863a56d (diff) | |
Little better message when modules cannot be loaded.
bzr revid: p_christ@hol.gr-20090131114835-7go7yhsve0t8oks0
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/addons/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 2d6949c142a..8c3d5969a1b 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -695,13 +695,14 @@ def load_modules(db, force_demo=False, status=None, update_module=False): if not module_list: break - logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Updating graph with %d more modules' % (len(module_list))) + #logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Updating graph with %d more modules' % (len(module_list))) if not upgrade_graph(graph, module_list, force): + logger.notifyChannel('init', netsvc.LOG_WARNING, 'These modules are in db, but cannot be loaded: ' + (', '.join(module_list))) break r = load_module_graph(cr, graph, status, report=report) has_updates = has_updates or r - logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Has updates %s' % (str(has_updates))) + #logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Has updates %s' % (str(has_updates))) loop_count +=1 if (loop_count >100): raise ProgrammingError() |
