forked from oxen-io/session-appium
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make patch ofr appium support logger mocked log
- Loading branch information
1 parent
a346d0f
commit d7cfc10
Showing
3 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,5 +45,10 @@ | |
"appium-xcuitest-driver": "^7.24.0", | ||
"chalk": "^5.3.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"@appium/support@npm:^5.1.2": "patch:@appium/support@npm%3A5.1.2#~/patches/@appium-support-npm-5.1.2-0c5ea57d71.patch", | ||
"@appium/support@npm:^5.0.3": "patch:@appium/support@npm%3A5.1.2#~/patches/@appium-support-npm-5.1.2-0c5ea57d71.patch", | ||
"@appium/support@npm:^5.1.1": "patch:@appium/support@npm%3A5.1.2#~/patches/@appium-support-npm-5.1.2-0c5ea57d71.patch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/build/lib/logging.js b/build/lib/logging.js | ||
index f609feec3b89ef005177392a54c95560679630bf..d12007dd1880230b1900785daafb9225f697f114 100644 | ||
--- a/build/lib/logging.js | ||
+++ b/build/lib/logging.js | ||
@@ -13,7 +13,6 @@ exports.LEVELS = ['silly', 'verbose', 'debug', 'info', 'http', 'warn', 'error']; | ||
const MAX_LOG_RECORDS_COUNT = 3000; | ||
const PREFIX_TIMESTAMP_FORMAT = 'HH-mm-ss:SSS'; | ||
// export a default logger with no prefix | ||
-exports.log = getLogger(); | ||
// mock log object is used in testing mode to silence the output | ||
const MOCK_LOG = { | ||
unwrap: () => ({ | ||
@@ -27,6 +26,7 @@ const MOCK_LOG = { | ||
}), | ||
...(lodash_1.default.fromPairs(exports.LEVELS.map((l) => [l, lodash_1.default.noop]))), | ||
}; | ||
+exports.log = getLogger(); | ||
/** | ||
* | ||
* @param {AppiumLoggerPrefix?} [prefix=null] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters