Skip to content

Commit

Permalink
Use consistent logger initializer
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Oct 17, 2024
1 parent e9129a6 commit 663d585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/macSubtitleOCR/Subtitles/PGS/PGS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct PGS {
// MARK: - Properties

private(set) var subtitles = [Subtitle]()
private let logger: Logger = .init(subsystem: "github.ecdye.macSubtitleOCR", category: "PGS")
private let logger = Logger(subsystem: "github.ecdye.macSubtitleOCR", category: "PGS")
private var data: Data
private let pgsHeaderLength = 13

Expand Down
2 changes: 1 addition & 1 deletion Sources/macSubtitleOCR/macSubtitleOCR.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import os
import UniformTypeIdentifiers
import Vision

private let logger: Logger = .init(subsystem: "github.ecdye.macSubtitleOCR", category: "main")
private let logger = Logger(subsystem: "github.ecdye.macSubtitleOCR", category: "main")

// The main struct representing the macSubtitleOCR command-line tool.
@main
Expand Down

0 comments on commit 663d585

Please sign in to comment.