Skip to content

Commit f1608a1

Browse files
committed
Show absolute path for 'current logs' path
1 parent dfb963b commit f1608a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/com/tibagni/logviewer/LogViewerPresenter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public void loadLogs(File[] logFiles) {
401401
view.showAvailableLogStreams(availableStreams.keySet());
402402

403403
if (allLogs.length > 0) {
404-
String logsPath = FilenameUtils.getFullPath(logFiles[0].getPath());
404+
String logsPath = FilenameUtils.getFullPath(logFiles[0].getAbsolutePath());
405405
view.showCurrentLogsLocation(logsPath);
406406

407407
long appliedFiltersCount = getFiltersThat(filter -> filter.isApplied()).size();

src/main/java/com/tibagni/logviewer/LogViewerView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public void showLogs(LogEntry[] logEntries) {
219219

220220
@Override
221221
public void showCurrentLogsLocation(String logsPath) {
222+
Logger.debug("showCurrentLogsLocation: " + logsPath);
222223
String text = logsPath == null ?
223224
null :
224225
SwingUtils.truncateTextFor(

0 commit comments

Comments
 (0)