Skip to content

Commit d77c39f

Browse files
authored
Merge pull request #363 from topcoder-platform/develop
Logging and performance tweak
2 parents c0af1ec + f6b27e3 commit d77c39f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/informixHelper.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,15 @@ function queryInformix (query) {
104104
try {
105105
dbConnection = informix.openSync(connectionString)
106106
} catch (ex) {
107-
logger.error(`Informix connection error: ${ex}`)
107+
logger.error(`Informix connection error: ${JSON.stringify(ex)}`)
108+
return null
108109
}
109110
}
110111
let result = null
111112
try {
112113
result = dbConnection.querySync(query)
113114
} catch (ex) {
114-
logger.error(`Informix query error: ${ex}`)
115+
logger.error(`Informix query error: ${JSON.stringify(ex)}`)
115116
}
116117

117118
return result

0 commit comments

Comments
 (0)