Skip to content

Commit db51f22

Browse files
committed
q
1 parent 666055f commit db51f22

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Worker.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>Microsoft.Azure.Functions.NodeJsWorker</id>
5-
<version>1.0.0-beta5$version$</version>
5+
<version>1.0.0-beta6$version$</version>
66
<authors>Microsoft</authors>
77
<owners>Microsoft</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azure-functions-nodejs-worker",
33
"author": "Microsoft Corporation",
4-
"version": "1.0.0-beta5",
4+
"version": "1.0.0-beta6",
55
"description": "Microsoft Azure Functions NodeJS Worker",
66
"license": "(MIT OR Apache-2.0)",
77
"dependencies": {

src/nodejsWorker.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var logPrefix = "LanguageWorkerConsoleLog";
2+
var errorPrefix = logPrefix + "[error] ";
23
var ACTIVE_LTS_VERSION = "v8";
34
var CURRENT_BRANCH_VERSION = "v10";
45
var worker;
@@ -24,12 +25,12 @@ function validateNodeVersion(version) {
2425
// Unknown error
2526
} catch(err) {
2627
var unknownError = "Error in validating Node.js version. ";
27-
console.error(logPrefix + unknownError + err);
28+
console.error(errorPrefix + unknownError + err);
2829
throw unknownError + err;
2930
}
3031
// Throw error for known version errors
3132
if (message) {
32-
console.error(logPrefix + message);
33+
console.error(errorPrefix + message);
3334
throw message;
3435
}
3536
}

src/utils/Logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export function systemLog(message?: any, ...optionalParams: any[]) {
55
};
66

77
export function systemError(message?: any, ...optionalParams: any[]) {
8-
console.error(logPrefix + message, ...optionalParams);
8+
console.error(logPrefix + "[error] " + message, ...optionalParams);
99
};

0 commit comments

Comments
 (0)