summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-server6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index 7d2b55f91..4fc517e76 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -197,7 +197,11 @@ class Bcfg2Serv(Bcfg2.Server.Component.Component):
return "<ok/>"
if __name__ == '__main__':
- Bcfg2.Logging.setup_logging('bcfg2-server')
+ if '-D' in sys.argv:
+ Bcfg2.Logging.setup_logging('bcfg2-server', to_console=False)
+ else:
+ Bcfg2.Logging.setup_logging('bcfg2-server')
+
options = {
'v':'verbose',
'd':'debug',