Changed/Added logging

This commit is contained in:
Philipp Crocoll 2013-07-06 16:12:40 +02:00
parent d35218da39
commit 64e62cae70
3 changed files with 5 additions and 3 deletions

View File

@ -76,6 +76,7 @@ namespace keepass2android
}
set
{
Kp2aLog.Log("Locked=" + _locked);
_locked = value;
}
}

View File

@ -47,11 +47,11 @@ namespace keepass2android
SaveFileData (_ioc, _key);
} catch (KeyFileException) {
Android.Util.Log.Debug("KP2ATest", "KeyFileException");
Kp2aLog.Log("KeyFileException");
Finish(false, /*TODO Localize: use Keepass error text KPRes.KeyFileError (including "or invalid format")*/ _app.GetResourceString(UiStringKey.keyfile_does_not_exist));
}
catch (Exception e) {
Android.Util.Log.Debug("KP2ATest", "Exception: "+e.Message);
Kp2aLog.Log("Exception: " + e.Message);
Finish(false, "An error occured: " + e.Message);
return;
}
@ -87,7 +87,7 @@ namespace keepass2android
return;
}
*/
Android.Util.Log.Debug("KP2ATest", "LoadDB OK");
Kp2aLog.Log("LoadDB OK");
Finish(true);
}

View File

@ -76,6 +76,7 @@ namespace keepass2android
public static void DisplayMessage(Context ctx, string message)
{
if ( !String.IsNullOrEmpty(message) ) {
Kp2aLog.Log("OnFinish message: "+message);
Toast.MakeText(ctx, message, ToastLength.Long).Show();
}
}