chore: Update logging#84
Conversation
- Enhanced logging throughout the application for better debugging and tracking of events. - Added .vscode, .cursor, and .specstory files to .gitignore to prevent unnecessary files from being tracked. - Improved initialization and error handling messages in various components for clarity. Log: Update logging
Reviewer's GuideThis PR enriches the application’s observability by systematically adding detailed logging (qDebug, qInfo, qWarning, qCritical) across core installer, service/interface, utility, SevenZip and UI modules, and updates .gitignore to exclude IDE and temp files. Updated Class Diagram for QtBaseInstaller (Enhanced Logging)classDiagram
class QtBaseInstaller {
+QtBaseInstaller(QObject *parent)
+setformat(bool bFormat)
+setPartionName(const QString& strPartionName)
+setImage(const QString& strImage)
+beginInstall()
+checkError()
+stopInstall()
+hasEnoughSpace() bool
+checkISOIntegrity() bool
+umountPartion() bool
+umountDisk() bool
+ejectDisk() bool
+formatUsb() bool
+installBootload() bool
+extractISO() bool
+syncIO() bool
+configSyslinux() bool
+needAddRepo() bool
+modifyBootGrubFile(QString grub_file_name)
}
Updated Class Diagram for BootMakerService (Enhanced Logging)classDiagram
class BootMakerService {
+BootMakerService(QObject *parent)
+~BootMakerService()
+Reboot()
+Start()
+Stop()
+DeviceList() QString
+Install(const QString& image, const QString& device, const QString& partition, bool formatDevice) bool
+CheckFile(const QString& filepath) bool
}
class BootMakerServicePrivate {
+BootMakerServicePrivate(BootMakerService* q)
+checkCaller() bool
+dbusCallerPid() qint64
}
BootMakerService *-- "1" BootMakerServicePrivate : d_ptr
Updated Class Diagram for DeviceMonitor (Enhanced Logging)classDiagram
class DeviceMonitor {
+DeviceMonitor(QObject *parent)
+deviceList() const QList<DeviceInfo>
+getIntersectDevice(const QList<DeviceInfo>& list) QList<DeviceInfo>
+getNorDevice(const QList<DeviceInfo>& calcuList, const QList<DeviceInfo>& compareList) QList<DeviceInfo>
%% Methods' internal logic and constructor lambdas updated with logging
}
Updated Class Diagram for UI (BMWindow & SlideAnimatoin - Enhanced Logging)classDiagram
class BMWindow {
+BMWindow(QWidget *parent)
+slot_ThemeChange()
+~BMWindow()
+closeEvent(QCloseEvent *event)
+slideWidget(DWidget *left, DWidget *right, int iDirection)
%% Methods and constructor lambdas updated with logging
}
class SlideAnimatoin {
+SlideAnimatoin()
+~SlideAnimatoin()
+initAnimation(DWidget* pLeftWidget, DWidget* pRightWidget, int iDirection)
+slot_AnimationGroupFinished()
}
BMWindow ..> SlideAnimatoin : creates
Updated Class Diagram for SevenZip Utilities (Enhanced Logging)classDiagram
class SevenZip {
+SevenZip(const QString& image, const QString& target, QObject* parent)
+setArchiveFile(const QString& archiveFile)
+setOutputDirectory(const QString& outputDir)
+stopProcess()
+extract() bool
+check() bool
+handleFinished()
}
class SevenZipProcessParser {
+SevenZipProcessParser(const QString& file, QProcess* process, QObject* parent)
+run()
}
SevenZip ..> SevenZipProcessParser : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @Kakueeen - I've reviewed your changes and found some issues that need to be addressed.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| qInfo() << "Starting Boot Maker Service"; | ||
|
|
||
| QString PATH = qgetenv("PATH"); | ||
| qDebug() << "Initial PATH:" << PATH; |
There was a problem hiding this comment.
🚨 issue (security): Logging full PATH may expose sensitive environment data
Log only necessary environment variables or mask sensitive information in PATH to avoid exposing private data.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Kakueeen, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
Log: Update logging