Skip to content

Commit 49ba94c

Browse files
committed
Updated splunk python SDK from 2.1.0 to 2.1.1
Merged an enhancement by @yaleman to ensure the fields are sent to the command as expected
1 parent 8a728fe commit 49ba94c

28 files changed

+1946
-1241
lines changed

.github/workflows/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
name: "Run on push - Add Utilities & App Inspect"
99
runs-on: "ubuntu-latest"
1010

11+
env:
12+
SPLUNK_APP_ACTION_1: "rm -rf tests"
13+
1114
steps:
1215
- uses: VatsalJagani/splunk-app-action@v4
1316
with:

bin/lib/splunklib/__init__.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,21 @@
1616

1717
import logging
1818

19-
DEFAULT_LOG_FORMAT = '%(asctime)s, Level=%(levelname)s, Pid=%(process)s, Logger=%(name)s, File=%(filename)s, ' \
20-
'Line=%(lineno)s, %(message)s'
21-
DEFAULT_DATE_FORMAT = '%Y-%m-%d %H:%M:%S %Z'
19+
DEFAULT_LOG_FORMAT = (
20+
"%(asctime)s, Level=%(levelname)s, Pid=%(process)s, Logger=%(name)s, File=%(filename)s, "
21+
"Line=%(lineno)s, %(message)s"
22+
)
23+
DEFAULT_DATE_FORMAT = "%Y-%m-%d %H:%M:%S %Z"
2224

2325

2426
# To set the logging level of splunklib
2527
# ex. To enable debug logs, call this method with parameter 'logging.DEBUG'
2628
# default logging level is set to 'WARNING'
27-
def setup_logging(level, log_format=DEFAULT_LOG_FORMAT, date_format=DEFAULT_DATE_FORMAT):
28-
logging.basicConfig(level=level,
29-
format=log_format,
30-
datefmt=date_format)
29+
def setup_logging(
30+
level, log_format=DEFAULT_LOG_FORMAT, date_format=DEFAULT_DATE_FORMAT
31+
):
32+
logging.basicConfig(level=level, format=log_format, datefmt=date_format)
3133

3234

33-
__version_info__ = (2, 1, 0)
35+
__version_info__ = (2, 1, 1)
3436
__version__ = ".".join(map(str, __version_info__))

0 commit comments

Comments
 (0)