mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02:00
fixed log output and new line issue
This commit is contained in:
parent
bac4d2c3b2
commit
160a7a29ad
@ -30,7 +30,7 @@ var output io.Writer = os.Stdout
|
||||
var prefix string
|
||||
|
||||
// the log suffix
|
||||
var suffix string = "/n"
|
||||
var suffix string = "\n"
|
||||
|
||||
// SetPriority sets the default log level.
|
||||
func SetPriority(level int) {
|
||||
|
@ -93,6 +93,7 @@ func RepoCreateGithub(w http.ResponseWriter, r *http.Request, u *User) error {
|
||||
}
|
||||
|
||||
repo.UserID = u.ID
|
||||
repo.Private = githubRepo.Private
|
||||
|
||||
// if the user chose to assign to a team account
|
||||
// we need to retrieve the team, verify the user
|
||||
@ -123,6 +124,8 @@ func RepoCreateGithub(w http.ResponseWriter, r *http.Request, u *User) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("Unable to add Private Key to your GitHub repository")
|
||||
}
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
// create a hook so that we get notified when code
|
||||
|
Loading…
Reference in New Issue
Block a user