Prompter prompt should not prepend the projectId when there's only one project, fixes #816

Also make sure the daemon prompter log only goes to the daemon log
This commit is contained in:
Guillaume Nodet
2023-03-14 10:02:12 +01:00
parent 10a87b48de
commit 4d24010f55
2 changed files with 8 additions and 1 deletions

View File

@@ -350,7 +350,10 @@ public class TerminalOutput implements ClientOutput {
readInput.writeLock().lock();
try {
clearDisplay();
terminal.writer().printf("[%s] %s", prompt.getProjectId(), prompt.getMessage());
String msg = (maxThreads > 1)
? String.format("[%s] %s", prompt.getProjectId(), prompt.getMessage())
: prompt.getMessage();
terminal.writer().print(msg);
terminal.flush();
StringBuilder sb = new StringBuilder();
while (true) {

View File

@@ -36,6 +36,10 @@
<appender-ref ref="DAEMON" />
</logger>
<logger name="org.mvndaemon.mvnd.interactivity" level="DEBUG" additivity="false">
<appender-ref ref="DAEMON" />
</logger>
<logger name="Sisu" level="INFO" />
<!-- suppress annoying @threadSafe and checksum failure warning messages -->