Skip to content

Commit 1601f70

Browse files
committed
added urllib3 disable warnings for es
added urllib3 disable warnings for es
1 parent 92ba139 commit 1601f70

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

diskover/diskover.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@
3838
index_info_crawlend, get_parent_path, get_dir_name, \
3939
get_file_name, load_plugins, list_plugins, get_plugins_info, set_times, \
4040
get_mem_usage, get_win_path, rem_win_path
41+
42+
# disable ES urlib3 InsecureRequestWarning warning log messages
43+
import urllib3
44+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
45+
4146

42-
version = '2.3.0 community edition (ce)'
47+
version = '2.3.1 community edition (ce)'
4348
__version__ = version
4449

4550
# Windows check
@@ -1256,4 +1261,4 @@ def log_setup():
12561261
logmsg = 'FATAL ERROR: an exception has occurred: {0}'.format(e)
12571262
logger.critical(logmsg, exc_info=1)
12581263
if config['LOGTOFILE']: logger_warn.critical(logmsg, exc_info=1)
1259-
close_app_critical_error()
1264+
close_app_critical_error()

0 commit comments

Comments
 (0)