* 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() {

View File

@ -1,4 +1,5 @@
2013-04-26 zzz
* Console: Show log location on /logs even if not opened yet (ticket #905)
* HTTP proxy: Verify nonce count in digest auth
* i2psnark: Use smaller piece size for small torrents

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 15;
public final static long BUILD = 16;
/** for example "-test" */
public final static String EXTRA = "";