Ignore:
Timestamp:
May 19, 2012, 7:45:59 PM (13 years ago)
Author:
rick
Message:

Log op de juiste manier..

File:
1 edited

Legend:

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

    r10814 r10925  
    2222from gheat.dataimport import import_file
    2323
    24 logging.basicConfig(level=logging.INFO, format='# %(levelname)s: %(msg)s')
     24logging.basicConfig(level=logging.INFO, format='# %(levelname)s: %(message)s')
    2525logger = logging.getLogger()
    2626
     
    136136    # Check if all files are valid
    137137    for filename in args:
    138       logger.info('Meetrondje: %s', meetrondje)
     138      logger.info("Meetrondje: %s", meetrondje)
     139      logger.info("Bestand: %s", filename)
    139140      meetbestand = MeetBestand(meetrondje=meetrondje,is_imported=True)
    140141      meetbestand.bestand.save(os.path.basename(filename),File(open(filename)))
Note: See TracChangeset for help on using the changeset viewer.