Skip to content

Commit

Permalink
Prompter prompt should not prepend the projectId when there's only on…
Browse files Browse the repository at this point in the history
…e project, fixes apache#816

Also make sure the daemon prompter log only goes to the daemon log
  • Loading branch information
gnodet committed Mar 14, 2023
1 parent e1815e5 commit 39e1da2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ private boolean doAccept(Message entry) {
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) {
Expand Down
4 changes: 4 additions & 0 deletions dist/src/main/distro/mvn/conf/logging/logback-daemon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down

0 comments on commit 39e1da2

Please sign in to comment.