* Console: Show log location on /logs even if not opened yet (ticket #905)

This commit is contained in:
zzz
2013-04-26 13:36:38 +00:00
parent 0d4bc500ee
commit 1cea18346b
3 changed files with 8 additions and 2 deletions

View File

@ -135,8 +135,13 @@ class LogWriter implements Runnable {
return Translate.getString(a, b, c, _manager.getContext(), BUNDLE_NAME);
}
/**
* File may not exist or have old logs in it if not opened yet
*/
public String currentFile() {
return _currentFile != null ? _currentFile.getAbsolutePath() : "uninitialized";
return _currentFile != null ? _currentFile.getAbsolutePath()
//: "uninitialized";
: getNextFile(_manager.getBaseLogfilename()).getAbsolutePath();
}
private void rereadConfig() {