aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/pluginmanager.cpp7
-rw-r--r--core/save-git.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/core/pluginmanager.cpp b/core/pluginmanager.cpp
index 28c978280..880ba2a0e 100644
--- a/core/pluginmanager.cpp
+++ b/core/pluginmanager.cpp
@@ -7,6 +7,9 @@
static QList<ISocialNetworkIntegration*> _socialNetworks;
+// no point in including dive.h for this
+extern int verbose;
+
PluginManager& PluginManager::instance()
{
static PluginManager self;
@@ -33,7 +36,9 @@ void PluginManager::loadPlugins()
#endif
pluginsDir.cd("plugins");
- qDebug() << "Plugins Directory: " << pluginsDir;
+ if (verbose)
+ qDebug() << "Plugins Directory: " << pluginsDir;
+
foreach (const QString& fileName, pluginsDir.entryList(QDir::Files)) {
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = loader.instance();
diff --git a/core/save-git.c b/core/save-git.c
index cfcd3627c..30cb2972f 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -1107,7 +1107,7 @@ static int create_new_commit(git_repository *repo, const char *remote, const cha
return report_error("Unable to look up parent in branch '%s'", branch);
if (saved_git_id) {
- if (existing_filename)
+ if (existing_filename && verbose)
fprintf(stderr, "existing filename %s\n", existing_filename);
const git_oid *id = git_commit_id((const git_commit *) parent);
/* if we are saving to the same git tree we got this from, let's make