Skip to content

Commit

Permalink
[Gradle, JS] Simple message to message
Browse files Browse the repository at this point in the history
#KT-38109 fixed
  • Loading branch information
ilgonmic committed Apr 16, 2020
1 parent 47d7424 commit dccf670
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const TEST_END: string
export const TEST_END_NO_DURATION: string
export const BLOCK_OPENED: string
export const BLOCK_CLOSED: string
export const SIMPLE_MESSAGE: string
export const MESSAGE: string

export function tcEscape(str: string): string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_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
Expand Down
4 changes: 2 additions & 2 deletions libraries/tools/kotlin-test-js-runner/tc-log-appender.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

'use strict';

import {formatMessage, SIMPLE_MESSAGE} from "./src/teamcity-format"
import {formatMessage, MESSAGE} from "./src/teamcity-format"

const consoleLog = console.log.bind(console);

function consoleAppender(layout, timezoneOffset) {
return (loggingEvent) => {
consoleLog(formatMessage(SIMPLE_MESSAGE, layout(loggingEvent, timezoneOffset)));
consoleLog(formatMessage(MESSAGE, layout(loggingEvent, timezoneOffset)));
};
}

Expand Down

0 comments on commit dccf670

Please sign in to comment.