[Gradle, JS] Simple message to message

#KT-38109 fixed
This commit is contained in:
Ilya Goncharov
2020-04-10 18:36:29 +03:00
parent 47d7424d4d
commit dccf670849
3 changed files with 4 additions and 4 deletions
@@ -14,7 +14,7 @@ export const TEST_END: string
export const TEST_END_NO_DURATION: string export const TEST_END_NO_DURATION: string
export const BLOCK_OPENED: string export const BLOCK_OPENED: string
export const BLOCK_CLOSED: string export const BLOCK_CLOSED: string
export const SIMPLE_MESSAGE: string export const MESSAGE: string
export function tcEscape(str: string): string export function tcEscape(str: string): string
@@ -16,7 +16,7 @@ export const TEST_END_NO_DURATION = `##teamcity[testFinished name='%s' flowId='%
export const BLOCK_OPENED = `##teamcity[blockOpened name='%s' flowId='%s']` export const BLOCK_OPENED = `##teamcity[blockOpened name='%s' flowId='%s']`
export const BLOCK_CLOSED = `##teamcity[blockClosed name='%s' flowId='%s']` export const BLOCK_CLOSED = `##teamcity[blockClosed name='%s' flowId='%s']`
export const SIMPLE_MESSAGE = `##teamcity[message text='%s']` export const MESSAGE = `##teamcity[message text='%s']`
/** /**
* from teamcity-service-messages * from teamcity-service-messages
@@ -5,13 +5,13 @@
'use strict'; 'use strict';
import {formatMessage, SIMPLE_MESSAGE} from "./src/teamcity-format" import {formatMessage, MESSAGE} from "./src/teamcity-format"
const consoleLog = console.log.bind(console); const consoleLog = console.log.bind(console);
function consoleAppender(layout, timezoneOffset) { function consoleAppender(layout, timezoneOffset) {
return (loggingEvent) => { return (loggingEvent) => {
consoleLog(formatMessage(SIMPLE_MESSAGE, layout(loggingEvent, timezoneOffset))); consoleLog(formatMessage(MESSAGE, layout(loggingEvent, timezoneOffset)));
}; };
} }