Changeset 10814 for src


Ignore:
Timestamp:
May 13, 2012, 10:44:37 AM (13 years ago)
Author:
rick
Message:

Avoid nagging on missing logging handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/management/commands/import_datafile.py

    r9823 r10814  
    2222from gheat.dataimport import import_file
    2323
    24 logger = logging.getLogger(__name__)
    25 logger.setLevel(logging.INFO)
     24logging.basicConfig(level=logging.INFO, format='# %(levelname)s: %(msg)s')
     25logger = logging.getLogger()
    2626
    2727
     
    7777      help="Provide date in following format: '%Y%m%d-%H-%M-%S-1', by \
    7878      default it will be generated from the filename"),
     79    make_option('-b', '--batch', dest='batch', default=False, action="store_true",
     80      help="Batch import modes, gives no errors if items is already imported"),
    7981  )
    8082
Note: See TracChangeset for help on using the changeset viewer.