14 Commits
Author SHA1 Message Date
Mark D Horn 59302346d6 linter: enable whitespace
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-04-24 14:53:17 -07:00
Mark D Horn 9b1204f36c log: Fix formatting issues in output log file
Fixes several problems in the output of the log file.
- Escaping percent signs
- Wrong format for data type
- Unnecessary format strings

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-25 18:29:57 -07:00
Karthik Prabhu Vinod 31797ecb54 model,log: Small extraneous files fixes
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-02-13 15:54:28 -08:00
Reagan Lopez 851dca7871 gui: Introduces Panic() to handle crashes
Fixes #417

Also, removed unused variables in Gui struct:
- Removed "model" and "installReboot" variables from Gui struct as they
  are not being used.
- Updated log level from warning to errors wherever applicable.

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-07-02 17:50:19 -07:00
Mark D Horn 38637f26f4 log: Add method to get the logfile name
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-18 12:48:36 -07:00
Mark D Horn 85cd7d5fc4 Fix permissions before removing directories
Due to recent updates to tmpfs, we can no longer remove files
without write permission even if we are the owner.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-04 14:28:41 -08:00
Mark D Horn e904f1139a Ask the user to submit bugs
Provide directions for submitting bugs including what
data to include and how to enable debug logging.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-02-19 09:28:18 -08:00
Mark D Horn 8c99371179 Relocate preConf file name for logging use
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-02-19 09:28:18 -08:00
Mark D Horn 6e38f979ce Redefine Log Levels
Redefine the log levels to that increasing the value increases
the amount of logging. 1 (ERR) ... 5 (Verbose Debug)

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-16 16:47:50 -07:00
Mark D Horn 43690086b7 Setting Log Level should not be fatal
Changing the log level should not abort the installer.
Instead, force to highest or lowest value and log a warning.
This is particularly useful if set via the kernel command line
during debug of an installation we do not want to fail.

Moved setting the output log file name before setting level.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-16 16:47:50 -07:00
Mark D Horn dfcb727914 Avoid logging repeated lines
Condense the output by caching repeated lines and printing a count.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-16 16:47:50 -07:00
Mark D Horn f77cced634 Remove the unfilter Out log function
Need to ensure the log out is without extraneous debug information.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-16 16:47:50 -07:00
Mark D Horn e550ed70ea Clean Up all temporary files and directories
Ensure both the main code and test clean up after themselves.

Testing for changes in the /tmp directory done in the Makefile
to ensure the testing is done outside of the code itself.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-02 16:24:45 -07:00
Mark D Horn e84bb0e403 First Open Source push of code base
This is code is still alpha. The Text-based User Interface is
undergoing a resign of the layout before beta.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-08-13 14:14:30 -07:00