Changeset 81ca822 in trunk


Ignore:
Timestamp:
2019-03-14T15:24:35Z (6 years ago)
Author:
Jean-Paul Calderone <exarkun@…>
Branches:
master
Children:
db7af266
Parents:
3ab71385
git-author:
Jean-Paul Calderone <exarkun@…> (2019-03-06 20:13:59)
git-committer:
Jean-Paul Calderone <exarkun@…> (2019-03-14 15:24:35)
Message:

Cut the cost of this logging when logging is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/frontends/magic_folder.py

    r3ab71385 r81ca822  
    523523)
    524524
    525 PENDING = Field.for_types(
     525PENDING = Field(
    526526    u"pending",
    527     [list],
     527    lambda s: list(s),
    528528    u"The paths which are pending processing.",
     529    eliotutil.validateInstanceOf(set),
    529530)
    530531
     
    13381339
    13391340            try:
    1340                 with REMOVE_FROM_PENDING(relpath=relpath_u, pending=list(self._pending)):
     1341                with REMOVE_FROM_PENDING(relpath=relpath_u, pending=self._pending):
    13411342                    self._pending.remove(relpath_u)
    13421343            except KeyError:
Note: See TracChangeset for help on using the changeset viewer.