This is an automated email from the ASF dual-hosted git repository.
fgreg pushed a commit to branch SDAP-125
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
The following commit(s) were added to refs/heads/SDAP-125 by this push:
new 77ff637 I give up on logging.
77ff637 is described below
commit 77ff637e6c6f3bd9bc978ee0d2119ffbf6e7b450
Author: Frank Greguska <[email protected]>
AuthorDate: Tue Jul 17 16:43:45 2018 -0700
I give up on logging.
---
client/nexuscli/nexuscli.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/client/nexuscli/nexuscli.py b/client/nexuscli/nexuscli.py
index cf8684a..c431f46 100644
--- a/client/nexuscli/nexuscli.py
+++ b/client/nexuscli/nexuscli.py
@@ -26,8 +26,6 @@ Usage:
"""
import requests
import numpy as np
-import logging
-import sys
from datetime import datetime
from collections import namedtuple, OrderedDict
from pytz import UTC
@@ -56,8 +54,6 @@ __pdoc__['Point.variable'] = "dictionary of variable values"
ISO_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
-logging.basicConfig(stream=sys.stdout, level=logging.INFO)
-
target = 'http://localhost:8083'
session = requests.session()
@@ -72,7 +68,7 @@ def set_target(url, use_session=True):
"""
global target
target = url
- logging.info("Target set to {}".format(target))
+ print("Target set to {}".format(target))
if not use_session:
global session