Author Topic: Cannot disable debug logging  (Read 6501 times)

doctorow

  • Jr. Member
  • **
  • Posts: 87
Cannot disable debug logging
« on: March 02, 2013, 05:08:15 pm »
This is in AquaMail 1.2.1.2:

No matter whether the debug option is checked or not, it says logging enabled and sure enough a log file is written to my sdcard memory.

Sent from my GT-I9100


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Cannot disable debug logging
« Reply #1 on: March 03, 2013, 02:46:53 am »
Disabling logging does not delete the log file, if one exists.

Please turn off in the app's settings, and then delete the file.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

doctorow

  • Jr. Member
  • **
  • Posts: 87
Re: Cannot disable debug logging
« Reply #2 on: March 03, 2013, 06:33:11 pm »
Hmm, I see. I still think there is an inconsistency or two. Removing the log file made Aqua stop creating a new one. Good. But if I recall correctly, while the error log was still there, it was being logged to, even if logging was set to disabled. Or, perhaps just the file's modification time was updated without new content added to it? Not sure I remember.

Either way, attached is a screenshot showing that the option is unchecked but it still says "enabled".

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Cannot disable debug logging
« Reply #3 on: March 03, 2013, 08:22:39 pm »
If you delete the log while the app has it open, the app will continue to write to the deleted file (basic Unix here), but the file will stay hidden.

If the app then cycles the log (when/if the process gets killed), this will open a new log file, reclaiming the FS storage for the deleted file.

The post-mortem crash log is always written, regardless of the setting for the detailed event log -- it's just too valuable to lose, and is often needed without an advance warning.

The summary for the checkbox corresponds to the checkbox's "checked" state, so this is normal. I'll adjust the wording so it's more clear.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/