Project

General

Profile

Actions

Feature #644

open

Need better way to display messages in dbugrade code

Added by Amber Herold over 14 years ago. Updated over 14 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Start date:
06/08/2010
Due date:
% Done:

0%

Estimated time:

Description

dbupgrade.py and upgrade scripts are displaying messages like this:

print "\033[31merror database %s does not exist\033[0m"%(appiondbname)
time.sleep(1)

The crazy characters are there to display the message in color, the sleep is so that there is a long enough pause in the output for the user to notice it.
Would be nice to have a display class that handles display formatting and timing. It would be nice for messages to optionally get stored in a log file. Perhaps the display class could call a logger.


Related issues 1 (1 open0 closed)

Related to Appion - Feature #75: Create an error logNew02/05/2010

Actions
Actions #1

Updated by Amber Herold over 14 years ago

  • Priority changed from Normal to Low
  • Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon Future Version
Actions

Also available in: Atom PDF