Commit Diff


commit - 4f8a1204503f9e372f637e5d3ae5fbaa30b7ecdd
commit + 88f6dccd4e18282613d4e03dab50c46ea4b2ccd7
blob - 9ae371a9074ffd06f78b8c1406d152e968e07356
blob + 7775b1f5018ccb890406b37a3815e460b7cb8244
--- gotd/repo_read.c
+++ gotd/repo_read.c
@@ -715,42 +715,36 @@ repo_read_dispatch_session(int fd, short event, void *
 		case GOTD_IMSG_LIST_REFS_INTERNAL:
 			err = list_refs(&imsg);
 			if (err)
-				log_warnx("%s: ls-refs: %s", repo_read.title,
-				    err->msg);
+				log_warnx("ls-refs: %s", err->msg);
 			break;
 		case GOTD_IMSG_WANT:
 			err = recv_want(&imsg);
 			if (err)
-				log_warnx("%s: want-line: %s", repo_read.title,
-				    err->msg);
+				log_warnx("want-line: %s", err->msg);
 			break;
 		case GOTD_IMSG_HAVE:
 			err = recv_have(&imsg);
 			if (err)
-				log_warnx("%s: have-line: %s", repo_read.title,
-				    err->msg);
+				log_warnx("have-line: %s", err->msg);
 			break;
 		case GOTD_IMSG_SEND_PACKFILE:
 			err = receive_delta_cache_fd(&imsg, iev);
 			if (err)
-				log_warnx("%s: receiving delta cache: %s",
-				    repo_read.title, err->msg);
+				log_warnx("receiving delta cache: %s",
+				    err->msg);
 			break;
 		case GOTD_IMSG_PACKFILE_PIPE:
 			err = receive_pack_pipe(&imsg, iev);
 			if (err) {
-				log_warnx("%s: receiving pack pipe: %s",
-				    repo_read.title, err->msg);
+				log_warnx("receiving pack pipe: %s", err->msg);
 				break;
 			}
 			err = send_packfile(&imsg, iev);
 			if (err)
-				log_warnx("%s: sending packfile: %s",
-				    repo_read.title, err->msg);
+				log_warnx("sending packfile: %s", err->msg);
 			break;
 		default:
-			log_debug("%s: unexpected imsg %d", repo_read.title,
-			    imsg.hdr.type);
+			log_debug("unexpected imsg %d", imsg.hdr.type);
 			break;
 		}
 
@@ -837,8 +831,7 @@ repo_read_dispatch(int fd, short event, void *arg)
 			err = recv_connect(&imsg);
 			break;
 		default:
-			log_debug("%s: unexpected imsg %d", repo_read.title,
-			    imsg.hdr.type);
+			log_debug("unexpected imsg %d", imsg.hdr.type);
 			break;
 		}
 
blob - ddff15503853f7b1cac9768b3e01d145a3dd7899
blob + 558b5bdb3d78eb3e3f997f05a681c61ec2f73414
--- gotd/repo_write.c
+++ gotd/repo_write.c
@@ -1278,61 +1278,55 @@ repo_write_dispatch_session(int fd, short event, void 
 		case GOTD_IMSG_LIST_REFS_INTERNAL:
 			err = list_refs(&imsg);
 			if (err)
-				log_warnx("%s: ls-refs: %s", repo_write.title,
-				    err->msg);
+				log_warnx("ls-refs: %s", err->msg);
 			break;
 		case GOTD_IMSG_REF_UPDATE:
 			err = recv_ref_update(&imsg);
 			if (err)
-				log_warnx("%s: ref-update: %s",
-				    repo_write.title, err->msg);
+				log_warnx("ref-update: %s", err->msg);
 			break;
 		case GOTD_IMSG_PACKFILE_PIPE:
 			err = receive_pack_pipe(&imsg, iev);
 			if (err) {
-				log_warnx("%s: receiving pack pipe: %s",
-				    repo_write.title, err->msg);
+				log_warnx("receiving pack pipe: %s", err->msg);
 				break;
 			}
 			break;
 		case GOTD_IMSG_PACKIDX_FILE:
 			err = receive_pack_idx(&imsg, iev);
 			if (err) {
-				log_warnx("%s: receiving pack index: %s",
-				    repo_write.title, err->msg);
+				log_warnx("receiving pack index: %s",
+				    err->msg);
 				break;
 			}
 			break;
 		case GOTD_IMSG_RECV_PACKFILE:
 			err = recv_packfile(&have_packfile, &imsg);
 			if (err) {
-				log_warnx("%s: receive packfile: %s",
-				    repo_write.title, err->msg);
+				log_warnx("receive packfile: %s", err->msg);
 				break;
 			}
 			if (have_packfile) {
 				err = verify_packfile();
 				if (err) {
-					log_warnx("%s: verify packfile: %s",
-					    repo_write.title, err->msg);
+					log_warnx("verify packfile: %s",
+					    err->msg);
 					break;
 				}
 				err = install_packfile(iev);
 				if (err) {
-					log_warnx("%s: install packfile: %s",
-					    repo_write.title, err->msg);
+					log_warnx("install packfile: %s",
+					    err->msg);
 					break;
 				}
 			}
 			err = update_refs(iev);
 			if (err) {
-				log_warnx("%s: update refs: %s",
-				    repo_write.title, err->msg);
+				log_warnx("update refs: %s", err->msg);
 			}
 			break;
 		default:
-			log_debug("%s: unexpected imsg %d", repo_write.title,
-			    imsg.hdr.type);
+			log_debug("unexpected imsg %d", imsg.hdr.type);
 			break;
 		}
 
@@ -1419,8 +1413,7 @@ repo_write_dispatch(int fd, short event, void *arg)
 			err = recv_connect(&imsg);
 			break;
 		default:
-			log_debug("%s: unexpected imsg %d", repo_write.title,
-			    imsg.hdr.type);
+			log_debug("unexpected imsg %d", imsg.hdr.type);
 			break;
 		}