Add logging OS version. Deprioritize some messages to debug, so devs can run at info level with less spam (and much less impact on recalc times).

This commit is contained in:
Ebag333
2017-03-18 13:27:07 -07:00
parent 9c693cd7ed
commit 0ccd812398
4 changed files with 10 additions and 3 deletions

View File

@@ -17,8 +17,11 @@
# along with pyfa. If not, see <http://www.gnu.org/licenses/>.
# ===============================================================================
import wx
import platform
import sys
import wx
import config
try:
@@ -76,6 +79,8 @@ class ErrorFrame(wx.Frame):
errorTextCtrl.SetFont(wx.Font(8, wx.FONTFAMILY_TELETYPE, wx.NORMAL, wx.NORMAL))
mainSizer.Add(errorTextCtrl, 0, wx.EXPAND | wx.ALL | wx.ALIGN_CENTER, 5)
errorTextCtrl.AppendText("OS version: \t" + str(platform.platform()))
errorTextCtrl.AppendText("\n")
errorTextCtrl.AppendText("Python: \t" + '{}.{}.{}'.format(v.major, v.minor, v.micro))
errorTextCtrl.AppendText("\n")
errorTextCtrl.AppendText("wxPython: \t" + str(wx.__version__))