splitlog 2.1.4__tar.gz → 2.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: splitlog
3
- Version: 2.1.4
3
+ Version: 2.1.5
4
4
  Summary: Utility to split aggregated logs from Apache Hadoop Yarn applications into a folder hierarchy
5
5
  Home-page: https://github.com/splitlog/splitlog.git
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "splitlog"
3
- version = "2.1.4"
3
+ version = "2.1.5"
4
4
  description = "Utility to split aggregated logs from Apache Hadoop Yarn applications into a folder hierarchy"
5
5
  authors = ["Sebastian Klemke <pypi@nerdheim.de>"]
6
6
  license = "MIT"
@@ -263,9 +263,8 @@ class _Splitter(object):
263
263
  assert self.filename, "filename must be present"
264
264
  log_path = container_dir / self.filename
265
265
 
266
- log_path.touch(exist_ok=False)
267
-
268
- logger.debug("Created empty log file %s", log_path)
266
+ with self.output_folder.create(log_path) as outfile:
267
+ logger.debug("Created empty log file %s", log_path)
269
268
 
270
269
  def _copy(self: "_Splitter") -> None:
271
270
  container_dir = self._create_hierarchy()
File without changes
File without changes
File without changes