Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated print and os_log calls to modern OSLog class. #129

Merged
merged 14 commits into from
Oct 30, 2024

Conversation

SkylerGodfrey
Copy link
Contributor

Replaced all print and os_log calls with OSLog class calls: https://developer.apple.com/documentation/os/oslog

This is to address Should use os_log instead of print function #112: #112

SkylerGodfrey and others added 2 commits October 21, 2024 10:03
Update all print and OS_log calls to OSLog.
@watkyn
Copy link
Contributor

watkyn commented Oct 21, 2024

There are a few SwiftLint warnings. If you install SwiftLint locally, the warnings should show up in Xcode.

Copy link
Contributor

@macblazer macblazer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good changes for the most part. A couple minor things to clean up.

Source/Networking/UploadManager.swift Outdated Show resolved Hide resolved
Source/SwiftUI/UploadInfoView.swift Show resolved Hide resolved
Resources/Base.lproj/Main.storyboard Outdated Show resolved Hide resolved
@macblazer
Copy link
Contributor

There are a few SwiftLint warnings. If you install SwiftLint locally, the warnings should show up in Xcode.

Xcode has a setting that will help. Using the Xcode > Settings menu command, under the Text Editing tab, then the Editing tab, turn on the "Automatically trim trailing whitespace" and "Including whitespace-only lines" checkboxes.

Source/Extensions/LoggerExtensions.swift Outdated Show resolved Hide resolved
Source/View Controllers/SaveViewController.swift Outdated Show resolved Hide resolved
@watkyn
Copy link
Contributor

watkyn commented Oct 22, 2024

There are a few SwiftLint warnings. If you install SwiftLint locally, the warnings should show up in Xcode.

Just one more SwiftLint issue to resolve.

Made data call non-optional to address swiftLint error Non-optional String -> Data Conversion.
Copy link
Contributor

@macblazer macblazer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix for the last SwiftLint warning is part of PR #130

Update NetworkAuthManager.swift
@watkyn
Copy link
Contributor

watkyn commented Oct 28, 2024

Everything looking good! One last thing is to update the CHANGELOG.md about the logging. After that we can get this merged in.

@watkyn watkyn merged commit 82249b9 into jamf:master Oct 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants