Skip to content

Commit

Permalink
Remove unused import in ArcPyLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiencyr committed Feb 2, 2024
1 parent 8be9d1b commit 5cb46e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sertit/arcpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ def __del__(self):
def _set_logger(self):

import tempfile
import arcpy

logger = logging.getLogger(self.name)
f = tempfile.NamedTemporaryFile(prefix=self.prefix, delete=False)

self.handler = arcpy.ArcPyLogHandler(
self.handler = ArcPyLogHandler(
f.name, maxBytes=1024 * 1024 * 2, backupCount=10 # 2MB log files
)
logger.addHandler(self.handler)
Expand Down

0 comments on commit 5cb46e6

Please sign in to comment.