diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-10 00:10:22 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-10 00:10:22 +0100 |
| commit | 9d2cb4518c3a8a72ccc714ddbc131aaa84506092 (patch) | |
| tree | e21efa47e3ed2e2f911c87fad8d0d992f236124a /lib/plugins | |
| parent | d1c6a4329284a1daba12a7e0fbd743a90cb0d884 (diff) | |
| download | abrt-9d2cb4518c3a8a72ccc714ddbc131aaa84506092.tar.gz abrt-9d2cb4518c3a8a72ccc714ddbc131aaa84506092.tar.xz abrt-9d2cb4518c3a8a72ccc714ddbc131aaa84506092.zip | |
Decouple settings handling from old-style plugins
The breakage was discovered when i removed Logger class.
it turned out the fix is somewhat involved.
This change implements it as discussed with the rest of the team.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'lib/plugins')
| -rw-r--r-- | lib/plugins/Bugzilla.conf | 2 | ||||
| -rw-r--r-- | lib/plugins/CCpp.h | 2 | ||||
| -rw-r--r-- | lib/plugins/FileTransfer.h | 2 | ||||
| -rw-r--r-- | lib/plugins/Logger.conf | 8 | ||||
| -rw-r--r-- | lib/plugins/Mailx.conf | 2 | ||||
| -rw-r--r-- | lib/plugins/Makefile.am | 4 | ||||
| -rw-r--r-- | lib/plugins/RHTSupport.conf | 2 | ||||
| -rw-r--r-- | lib/plugins/ReportUploader.conf | 2 |
8 files changed, 19 insertions, 5 deletions
diff --git a/lib/plugins/Bugzilla.conf b/lib/plugins/Bugzilla.conf index 4eebd994..76e0d1d8 100644 --- a/lib/plugins/Bugzilla.conf +++ b/lib/plugins/Bugzilla.conf @@ -1,3 +1,5 @@ +# Description: Reports bugs to bugzilla + Enabled = yes # Bugzilla URL diff --git a/lib/plugins/CCpp.h b/lib/plugins/CCpp.h index db372b01..e95b4d09 100644 --- a/lib/plugins/CCpp.h +++ b/lib/plugins/CCpp.h @@ -44,8 +44,6 @@ class CAnalyzerCCpp : public CAnalyzer virtual void Init(); virtual void DeInit(); virtual void SetSettings(const map_plugin_settings_t& pSettings); -//ok to delete? -// virtual const map_plugin_settings_t& GetSettings(); }; #endif /* CCPP */ diff --git a/lib/plugins/FileTransfer.h b/lib/plugins/FileTransfer.h index 5e9f4938..17bebf3d 100644 --- a/lib/plugins/FileTransfer.h +++ b/lib/plugins/FileTransfer.h @@ -40,8 +40,6 @@ class CFileTransfer : public CAction public: CFileTransfer(); virtual void SetSettings(const map_plugin_settings_t& pSettings); -//ok to delete? -// virtual const map_plugin_settings_t& GetSettings(); virtual void Run(const char *pActionDir, const char *pArgs, int force); }; diff --git a/lib/plugins/Logger.conf b/lib/plugins/Logger.conf new file mode 100644 index 00000000..aadd3515 --- /dev/null +++ b/lib/plugins/Logger.conf @@ -0,0 +1,8 @@ +# Description: Writes report to a file + +# Configuration for Logger plugin +Enabled = yes + +LogPath = /var/log/abrt.log + +AppendLogs = yes diff --git a/lib/plugins/Mailx.conf b/lib/plugins/Mailx.conf index ccd14292..1d946427 100644 --- a/lib/plugins/Mailx.conf +++ b/lib/plugins/Mailx.conf @@ -1,3 +1,5 @@ +# Description: Sends an email with a report (using mailx command) + # Configuration to Email reporter plugin Enabled = yes diff --git a/lib/plugins/Makefile.am b/lib/plugins/Makefile.am index 2f1e7966..caf5ea27 100644 --- a/lib/plugins/Makefile.am +++ b/lib/plugins/Makefile.am @@ -27,6 +27,7 @@ dist_pluginsconf_DATA = \ CCpp.conf \ Mailx.conf \ SQLite3.conf \ + Logger.conf \ Kerneloops.conf \ Bugzilla.conf \ RHTSupport.conf \ @@ -53,7 +54,8 @@ $(DESTDIR)/$(DEBUG_INFO_DIR): install-data-hook: $(DESTDIR)/$(DEBUG_INFO_DIR) sed 's: = /var/: = $(localstatedir)/:g' -i \ - $(DESTDIR)$(sysconfdir)/abrt/plugins/SQLite3.conf + $(DESTDIR)$(sysconfdir)/abrt/plugins/SQLite3.conf \ + $(DESTDIR)$(sysconfdir)/abrt/plugins/Logger.conf INC_PATH=$(srcdir)/../../inc UTILS_PATH=$(srcdir)/../utils diff --git a/lib/plugins/RHTSupport.conf b/lib/plugins/RHTSupport.conf index ed2c3a85..ecd5992a 100644 --- a/lib/plugins/RHTSupport.conf +++ b/lib/plugins/RHTSupport.conf @@ -1,3 +1,5 @@ +# Description: Reports crashes to Red Hat support + Enabled = yes URL = https://api.access.redhat.com/rs diff --git a/lib/plugins/ReportUploader.conf b/lib/plugins/ReportUploader.conf index 57692531..7a7b9133 100644 --- a/lib/plugins/ReportUploader.conf +++ b/lib/plugins/ReportUploader.conf @@ -1,3 +1,5 @@ +# Description: Packs crash data into .tar.gz file, optionally uploads it via FTP/SCP/etc + Enabled = yes # Customer = "Example Inc." |
