Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3ac90e5

Browse files
Cleaning up log messages
1 parent 2ba066f commit 3ac90e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/GitHub.Api/Git/GitClient.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public ITask<Version> LfsVersion(IOutputProcessor<Version> processor = null)
244244

245245
public ITask<string> GetConfig(string key, GitConfigSource configSource, IOutputProcessor<string> processor = null)
246246
{
247-
Logger.Trace("GetConfig");
247+
Logger.Trace("GetConfig: {0}", key);
248248

249249
return new GitConfigGetTask(key, configSource, cancellationToken, processor)
250250
.Configure(processManager);
@@ -264,19 +264,20 @@ public ITask<string[]> GetConfigUserAndEmail()
264264
string email = null;
265265

266266
return GetConfig("user.name", GitConfigSource.User).Then((success, value) => {
267-
Logger.Trace("Return success:{0} user.name", success, value);
268267
if (success)
269268
{
270269
username = value;
271270
}
272271

273272
}).Then(GetConfig("user.email", GitConfigSource.User).Then((success, value) => {
274-
Logger.Trace("Return success:{0} user.email", success, value);
275273
if (success)
276274
{
277275
email = value;
278276
}
279-
})).Then(success => new[] { username, email });
277+
})).Then(success => {
278+
Logger.Trace("user.name:{1} user.email:{2}", success, username, email);
279+
return new[] { username, email };
280+
});
280281
}
281282

282283
public ITask<List<GitLock>> ListLocks(bool local, BaseOutputListProcessor<GitLock> processor = null)

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/InitProjectView.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ private void CheckForUser()
142142
var username = strings[0];
143143
var email = strings[1];
144144

145-
Logger.Trace("Return success:{0} name:{1} email:{2}", success, username, email);
146145

147146
isBusy = false;
148147
isUserDataPresent = success && !String.IsNullOrEmpty(username) && !String.IsNullOrEmpty(email);

0 commit comments

Comments
 (0)