Skip to content

Commit c9e0b60

Browse files
author
zaihuaji
committed
pass logact to PgDBI.record_dscheck_error()
1 parent 9be22da commit c9e0b60

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rda_python_common"
7-
version = "1.0.31"
7+
version = "1.0.32"
88
authors = [
99
{ name="Zaihua Ji", email="zji@ucar.edu" },
1010
]

src/rda_python_common/PgDBI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def aborttran(autocommit = True):
315315
#
316316
# record error message to dscheck record and clean the lock
317317
#
318-
def record_dscheck_error(errmsg, logact = PGDBI['ERRLOG']):
318+
def record_dscheck_error(errmsg, logact = PGDBI['EXITLG']):
319319

320320
cnd = PgLOG.PGLOG['DSCHECK']['chkcnd']
321321
if PgLOG.PGLOG['NOQUIT']: PgLOG.PGLOG['NOQUIT'] = 0

src/rda_python_common/PgFile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def errlog(msg, etype, retry = 0, logact = 0):
145145
logact |= PgLOG.EXITLG
146146
ECNTS[etype] = 0
147147

148-
if PgLOG.PGLOG['DSCHECK'] and logact&PgLOG.EXITLG: PgDBI.record_dscheck_error(msg)
148+
if PgLOG.PGLOG['DSCHECK'] and logact&PgLOG.EXITLG: PgDBI.record_dscheck_error(msg, logact)
149149
PgLOG.pglog(msg, logact)
150150
PgLOG.PGLOG['BCKGRND'] = bckgrnd
151151
if not retry: time.sleep(PgSIG.PGSIG['ETIME'])

src/rda_python_common/PgOPT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ def action_error(errmsg, cact = None):
985985
msg += " of " + params['DS'][0]
986986

987987
msg += ": " + errmsg
988-
if PgLOG.PGLOG['DSCHECK']: PgDBI.record_dscheck_error(msg)
988+
if PgLOG.PGLOG['DSCHECK']: PgDBI.record_dscheck_error(msg, PGOPT['extlog'])
989989
PgLOG.pglog(msg, PGOPT['extlog'])
990990

991991
#

0 commit comments

Comments
 (0)