Commit 9b7bf05d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Added time for slapupdate logs, clean code

parent f3ea6a7f
...@@ -37,15 +37,13 @@ import os ...@@ -37,15 +37,13 @@ import os
import subprocess as sub import subprocess as sub
import sys import sys
import tempfile import tempfile
import urllib2
# create console handler and set level to debug # create console handler and set level to debug
ch = logging.StreamHandler() ch = logging.StreamHandler()
ch.setLevel(logging.WARNING) ch.setLevel(logging.WARNING)
# create formatter # create formatter
formatter = logging.Formatter("%(levelname)s - %(name)s - %(message)s") formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(name)s - %(message)s")
# add formatter to ch # add formatter to ch
ch.setFormatter(formatter) ch.setFormatter(formatter)
...@@ -60,9 +58,6 @@ class Parser(OptionParser): ...@@ -60,9 +58,6 @@ class Parser(OptionParser):
""" """
OptionParser.__init__(self, usage=usage, version=version, OptionParser.__init__(self, usage=usage, version=version,
option_list=[ option_list=[
Option("--server-url",
default='https://perso.telecom-paristech.fr/~leninivi/update-info',
help="status file url"),
Option("--slapos-configuration", Option("--slapos-configuration",
default='/etc/opt/slapos/slapos.cfg', default='/etc/opt/slapos/slapos.cfg',
help="Path to slapos configuration file"), help="Path to slapos configuration file"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment