Skip to content

Commit

Permalink
fix(dlog): JournalAppender not work
Browse files Browse the repository at this point in the history
BUILD_WITH_SYSTEMD not defined
  • Loading branch information
kegechen committed Oct 18, 2024
1 parent 280791d commit 4bfa7d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build() {
-GNinja \
-DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules \
-DBUILD_DOCS=ON \
-DBUILD_WITH_SYSTEMD=ON \
-DBUILD_EXAMPLES=OFF \
-DQCH_INSTALL_DESTINATION=share/doc/qt \
-DCMAKE_INSTALL_LIBDIR=lib \
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ endif
dh $@

override_dh_auto_configure:
dh_auto_configure -- -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=ON -DBUILD_VERSION=$(BUILD_VER) -DDTK_VERSION=$(PACK_VER) -DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata
dh_auto_configure -- -DBUILD_WITH_SYSTEMD=ON -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=ON -DBUILD_VERSION=$(BUILD_VER) -DDTK_VERSION=$(PACK_VER) -DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata

#override_dh_auto_test:
# echo "skip auto test"
Expand Down
2 changes: 2 additions & 0 deletions src/log/LogManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ void DLogManager::initJournalAppender()
Q_D(DLogManager);
d->m_journalAppender = new JournalAppender();
dlogger->registerAppender(d->m_journalAppender);
#else
qWarning() << "BUILD_WITH_SYSTEMD not defined or OS not support!!";
#endif
}

Expand Down

0 comments on commit 4bfa7d9

Please sign in to comment.