Commit Graph

12 Commits

Author SHA1 Message Date
Jeff Norman
59e1b2817b Updated copyright year to 2022 for OSCAR files 2021-11-02 16:34:12 -04:00
Guy Scharf
889bc8842c Logger.cpp: Add #define to allow all debug messages to be seen
I have DEFINES+=HARDLOG set up in my QT Debug configurations so I can always see messages in the event of a crash.
2021-04-09 14:03:37 +10:00
Guy Scharf
b338d7aa3d Check for ability to write to data directory at startup
Show critical error message and exit OSCAR if unable to write to data directory
    Improve qWarning message in logger.cpp
    Present warning dialog if logger cannot write to disk
2020-08-16 12:46:36 -07:00
Guy Scharf
1aba6e4e51 File error checking Phase I: check all file.open() operations are successful.
file.open() checked everywhere except in loaders.
    qWarning() message written to debug log, with error number and text.
    We may want to exit OSCAR with a message in many situations, but that is not implemented yet.
    Set number of debug logs to be kept for Release version to 4.
2020-08-09 10:33:04 -07:00
sawinglogz
5e9d391ccc Fix a rare race condition when shutting down the logger.
This resulted in an occasional use-after-free crash every once in a while.
2020-07-21 13:25:17 -04:00
sawinglogz
162e5695b1 Update the OSCAR data zip to use the live debug log instead of creating one.
Also fix the logger so that messages are logged immediately rather than once
per second.
2020-07-21 13:25:17 -04:00
sawinglogz
20dfb666b0 Write the debug log to a file within the OSCAR data folder.
Also immediately emit debug messages to console even before the UI is
initialized.

And present a useful error if the OSCAR data folder can't be created.
2020-07-21 13:25:17 -04:00
sawinglogz
6a658b3be0 Enable serial device recording in the main application.
This is transparent to the user and is recorded into a log directory within
the OSCAR_Data directory.

Also add log rotation so that these logs don't grow forever.
2020-07-21 13:25:16 -04:00
sawinglogz
d9386a993b Partial fix for database upgrade loop.
Resmed loader still needs to return -1 on error.

Also fixed a crasher in MainWindow::finishCPAPImport.
2020-05-06 13:40:59 -04:00
sawinglogz
127a3e1964 Fix logger thread so that it doesn't lose messages at startup.
This was particularly noticeable when running for the first time and
selecting OSCAR's data location.
2020-01-18 11:41:09 -05:00
Phil Olynyk
590032e76d Sorry, massive list of small changes - debugging, sleepyhead deleteion, etc 2019-03-10 12:03:19 -04:00
Phil Olynyk
17b53482bd Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00