rda-python-common 1.0.36__py3-none-any.whl → 1.0.37__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rda-python-common might be problematic. Click here for more details.
- rda_python_common/PgLOG.py +7 -9
- {rda_python_common-1.0.36.dist-info → rda_python_common-1.0.37.dist-info}/METADATA +1 -1
- {rda_python_common-1.0.36.dist-info → rda_python_common-1.0.37.dist-info}/RECORD +6 -6
- {rda_python_common-1.0.36.dist-info → rda_python_common-1.0.37.dist-info}/WHEEL +0 -0
- {rda_python_common-1.0.36.dist-info → rda_python_common-1.0.37.dist-info}/licenses/LICENSE +0 -0
- {rda_python_common-1.0.36.dist-info → rda_python_common-1.0.37.dist-info}/top_level.txt +0 -0
rda_python_common/PgLOG.py
CHANGED
|
@@ -402,15 +402,11 @@ def pglog(msg, logact = MSGLOG):
|
|
|
402
402
|
if logact&EMLLOG: logact &= ~EMLLOG
|
|
403
403
|
if not logact&ERRLOG: logact &= ~EMEROL
|
|
404
404
|
|
|
405
|
-
|
|
406
|
-
|
|
405
|
+
msg = msg.lstrip() if msg else '' # remove leading whitespaces for logging message
|
|
407
406
|
if logact&EXITLG:
|
|
408
407
|
ext = "Exit 1 in {}\n".format(os.getcwd())
|
|
409
|
-
if
|
|
410
|
-
|
|
411
|
-
else:
|
|
412
|
-
msg = msg.rstrip()
|
|
413
|
-
msg += "; " + ext
|
|
408
|
+
if msg: msg = msg.rstrip() + "; "
|
|
409
|
+
msg += ext
|
|
414
410
|
else:
|
|
415
411
|
if msg and not re.search(r'(\n|\r)$', msg): msg += "\n"
|
|
416
412
|
if logact&RETMSG: retmsg = msg
|
|
@@ -418,7 +414,8 @@ def pglog(msg, logact = MSGLOG):
|
|
|
418
414
|
if logact&EMLALL:
|
|
419
415
|
if logact&SNDEML or not msg:
|
|
420
416
|
title = (msg if msg else "Message from {}-{}".format(PGLOG['HOSTNAME'], get_command()))
|
|
421
|
-
msg =
|
|
417
|
+
msg = title + '\n' + msg
|
|
418
|
+
send_email(title.rstrip())
|
|
422
419
|
elif msg:
|
|
423
420
|
set_email(msg, logact)
|
|
424
421
|
|
|
@@ -428,7 +425,8 @@ def pglog(msg, logact = MSGLOG):
|
|
|
428
425
|
if not logact&EMLALL: set_email(msg, logact)
|
|
429
426
|
title = "ABORTS {}-{}".format(PGLOG['HOSTNAME'], get_command())
|
|
430
427
|
set_email((("ABORTS " + CPID['PID']) if CPID['PID'] else title), EMLTOP)
|
|
431
|
-
msg
|
|
428
|
+
msg = title + '\n' + msg
|
|
429
|
+
send_email(title)
|
|
432
430
|
|
|
433
431
|
if logact&LOGERR: # make sure error is always logged
|
|
434
432
|
msg = break_long_string(msg)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.37
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
rda_python_common/PgCMD.py,sha256=EYjG2Z4zEnvsXE1z-jt5UaNoEKxnOYYiMMzvW6HrKA4,20597
|
|
2
2
|
rda_python_common/PgDBI.py,sha256=12qnRXO7pWv8togtTsOvtVuGtwixnR-s2vLGPpdDfHw,74658
|
|
3
3
|
rda_python_common/PgFile.py,sha256=gJuzBxLRYo3HQyNW1WNYDsQWRei2cco9bYEb6uOL8Ds,98487
|
|
4
|
-
rda_python_common/PgLOG.py,sha256=
|
|
4
|
+
rda_python_common/PgLOG.py,sha256=AxEajxYDOzEEsvCEOCQ-WwKTQvL3ufJcOjCJ9el93lQ,55238
|
|
5
5
|
rda_python_common/PgLock.py,sha256=12i84nsGBuifSyPnm8IR63LvHvRuVU573D5QKFlHdOI,22623
|
|
6
6
|
rda_python_common/PgOPT.py,sha256=zX8lWFdfV6GxjLKfMc9eM76mjIjss_ulPieerejcmks,55936
|
|
7
7
|
rda_python_common/PgSIG.py,sha256=ZVM9Qz6yIFurwIQJtV5-CFbKOTdFsZ-Rs95SEpDFgNk,35795
|
|
8
8
|
rda_python_common/PgSplit.py,sha256=QKPbF55m8KCTGmwVwL3uG_nuylCC4FSVfLuXeLjJHbE,8816
|
|
9
9
|
rda_python_common/PgUtil.py,sha256=OqESKCd72b9g8m8jwjPJhXDtPYlW6G8oSOhwChvz2Cg,48600
|
|
10
10
|
rda_python_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
rda_python_common-1.0.
|
|
12
|
-
rda_python_common-1.0.
|
|
13
|
-
rda_python_common-1.0.
|
|
14
|
-
rda_python_common-1.0.
|
|
15
|
-
rda_python_common-1.0.
|
|
11
|
+
rda_python_common-1.0.37.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
|
|
12
|
+
rda_python_common-1.0.37.dist-info/METADATA,sha256=1_mZhDeUtUXg7GWnZQQlACo3jF1kHYWn2172h1CSbYo,716
|
|
13
|
+
rda_python_common-1.0.37.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
rda_python_common-1.0.37.dist-info/top_level.txt,sha256=KVQmx7D3DD-jsiheqL8HdTrRE14hpRnZY5_ioMArA5k,18
|
|
15
|
+
rda_python_common-1.0.37.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|