We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e34e530 commit 8ab0bd7Copy full SHA for 8ab0bd7
samples/basic-sdk-sample/basic_sdk_sample.py
@@ -8,6 +8,7 @@
8
9
import oneagent # SDK initialization functions
10
import oneagent.sdk as onesdk # All other SDK functions.
11
+import logging
12
13
try: # Python 2 compatibility.
14
input = raw_input #pylint:disable=redefined-builtin
@@ -147,6 +148,9 @@ def mock_incoming_web_request():
147
148
def main():
149
print('+main')
150
151
+ oneagent.logger.setLevel(1)
152
+ oneagent.logger.addHandler(logging.StreamHandler())
153
+
154
# This gathers arguments prefixed with '--dt_' from sys.argv into the
155
# returned list. See try_init below.
156
sdk_options = oneagent.sdkopts_from_commandline(remove=True)
0 commit comments