diff options
| author | Thierry Carrez <thierry@openstack.org> | 2011-01-21 16:24:39 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-01-21 16:24:39 +0000 |
| commit | 977393fe3e487926899f3f64cfd33f39105cc97e (patch) | |
| tree | eeed0c2e7e11fd3f5be31575ff394390a7b05d2e /bin | |
| parent | 14edbd55e667b16b8d46c0230b11ccd964f5742f (diff) | |
| parent | 2042c8722910c1f22ba04636163841812b3e24ba (diff) | |
Change default log formats so that:
* they include a timestamp (necessary to correlate logs)
* no longer display version on every line (shorter lines)
* use [-] instead of [N/A] (shorter lines, less scary-looking)
* show level before logger name (better human-readability)
Display version once at node startup time instead.
Fix description of the log format flags.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-api | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/nova-api b/bin/nova-api index 7b4fbeab1..44bbfaf86 100755 --- a/bin/nova-api +++ b/bin/nova-api @@ -36,6 +36,7 @@ gettext.install('nova', unicode=1) from nova import flags from nova import log as logging +from nova import version from nova import wsgi logging.basicConfig() @@ -79,6 +80,8 @@ def run_app(paste_config_file): if __name__ == '__main__': FLAGS(sys.argv) + LOG.audit(_("Starting nova-api node (version %s)"), + version.version_string_with_vcs()) conf = wsgi.paste_config_file('nova-api.conf') if conf: run_app(conf) |
