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 c283e35  Add log statement
c283e35 is described below

commit c283e35bda29c74661e9206d482096c6c9f286ce
Author: Frank Greguska <[email protected]>
AuthorDate: Tue Jul 17 16:33:55 2018 -0700

    Add log statement
---
 client/nexuscli/nexuscli.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/nexuscli/nexuscli.py b/client/nexuscli/nexuscli.py
index 1fe024f..0224e56 100644
--- a/client/nexuscli/nexuscli.py
+++ b/client/nexuscli/nexuscli.py
@@ -26,6 +26,7 @@ Usage:
 """
 import requests
 import numpy as np
+import logging
 from datetime import datetime
 from collections import namedtuple, OrderedDict
 from pytz import UTC
@@ -54,6 +55,8 @@ __pdoc__['Point.variable'] = "dictionary of variable values"
 
 ISO_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
 
+logging.basicConfig()
+
 target = 'http://localhost:8083'
 
 session = requests.session()
@@ -68,6 +71,7 @@ def set_target(url, use_session=True):
     """
     global target
     target = url
+    logging.info("Target set to {}".format(target))
 
     if not use_session:
         global session

Reply via email to