mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Reduce default verbosity
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									bc6c8a3949
								
							
						
					
					
						commit
						2182f00177
					
				
					 3 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
					@ -7,6 +7,9 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static QList<ISocialNetworkIntegration*> _socialNetworks;
 | 
					static QList<ISocialNetworkIntegration*> _socialNetworks;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// no point in including dive.h for this
 | 
				
			||||||
 | 
					extern int verbose;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PluginManager& PluginManager::instance()
 | 
					PluginManager& PluginManager::instance()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	static PluginManager self;
 | 
						static PluginManager self;
 | 
				
			||||||
| 
						 | 
					@ -33,7 +36,9 @@ void PluginManager::loadPlugins()
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
	pluginsDir.cd("plugins");
 | 
						pluginsDir.cd("plugins");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	qDebug() << "Plugins Directory: " << pluginsDir;
 | 
						if (verbose)
 | 
				
			||||||
 | 
							qDebug() << "Plugins Directory: " << pluginsDir;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	foreach (const QString& fileName, pluginsDir.entryList(QDir::Files)) {
 | 
						foreach (const QString& fileName, pluginsDir.entryList(QDir::Files)) {
 | 
				
			||||||
		QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
 | 
							QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
 | 
				
			||||||
		QObject *plugin = loader.instance();
 | 
							QObject *plugin = loader.instance();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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);
 | 
								return report_error("Unable to look up parent in branch '%s'", branch);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (saved_git_id) {
 | 
							if (saved_git_id) {
 | 
				
			||||||
			if (existing_filename)
 | 
								if (existing_filename && verbose)
 | 
				
			||||||
				fprintf(stderr, "existing filename %s\n", existing_filename);
 | 
									fprintf(stderr, "existing filename %s\n", existing_filename);
 | 
				
			||||||
			const git_oid *id = git_commit_id((const git_commit *) parent);
 | 
								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
 | 
								/* if we are saving to the same git tree we got this from, let's make
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -559,7 +559,8 @@ void MainWindow::on_actionCloudstorageopen_triggered()
 | 
				
			||||||
		getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
 | 
							getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	qDebug() << filename;
 | 
						if (verbose)
 | 
				
			||||||
 | 
							qDebug() << "Opening cloud storage from:" << filename;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	closeCurrentFile();
 | 
						closeCurrentFile();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -586,7 +587,8 @@ void MainWindow::on_actionCloudstoragesave_triggered()
 | 
				
			||||||
		getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
 | 
							getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	qDebug() << filename;
 | 
						if (verbose)
 | 
				
			||||||
 | 
							qDebug() << "Saving cloud storage to:" << filename;
 | 
				
			||||||
	if (information()->isEditing())
 | 
						if (information()->isEditing())
 | 
				
			||||||
		information()->acceptChanges();
 | 
							information()->acceptChanges();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue