Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions systemvm/debian/opt/cloud/bin/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,10 +1019,6 @@ def main(argv):
# The "GLOBAL" Configuration object
config = CsConfig()

logging.basicConfig(filename=config.get_logger(),
level=config.get_level(),
format=config.get_format())

# Load stored ip addresses from disk to CsConfig()
config.set_address()

Expand Down
9 changes: 9 additions & 0 deletions systemvm/debian/opt/cloud/bin/cs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

import logging
from cs.CsConfig import CsConfig

config = CsConfig()

logging.basicConfig(filename=config.get_logger(),
level=config.get_level(),
format=config.get_format())
2 changes: 0 additions & 2 deletions systemvm/debian/opt/cloud/bin/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import configure
import json

logging.basicConfig(filename='/var/log/cloud.log', level=logging.INFO, format='%(asctime)s %(filename)s %(funcName)s:%(lineno)d %(message)s')

# first commandline argument should be the file to process
argc = len(sys.argv)
if argc != 2 and argc != 3:
Expand Down