Skip to content

Tags: labstack/gommon

Tags

v0.4.2

Toggle v0.4.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
update deps (#58)

v0.4.1

Toggle v0.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
update deps and CI flow (#57)

v0.4.0

Toggle v0.4.0's commit message
Fix panic in log with empty header

Previously using `l.SetHeader("")` would panic with:

	--- FAIL: TestEmptyHeader (0.00s)
	panic: runtime error: index out of range [-1] [recovered]
		panic: runtime error: index out of range [-1]

	goroutine 18 [running]:
	github.com/labstack/gommon/log.(*Logger).log(0xc00014e990, 0x1, {0x5fb505, 0xd}, {0x0, 0x0, 0x0})
		/home/martin/src/gommon/log/log.go:394 +0x615
	github.com/labstack/gommon/log.(*Logger).Debugf(...)
		/home/martin/src/gommon/log/log.go:158
	github.com/labstack/gommon/log.TestEmptyHeader(0xc000129860?)
		/home/martin/src/gommon/log/log_test.go:128 +0xb1

This adds a check for that. It also checks if there is any content
before writing a space in the "Text header" else branch so you don't end
up with " my message".

v0.3.1

Toggle v0.3.1's commit message
fix Github workflow

v0.3.0

Toggle v0.3.0's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Bumped v0.3.0

Signed-off-by: Vishal Rana <[email protected]>

v0.2.9

Toggle v0.2.9's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Levels as Lvl

Signed-off-by: Vishal Rana <[email protected]>

v0.2.8

Toggle v0.2.8's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Using vgo

Signed-off-by: Vishal Rana <[email protected]>

v0.2.7

Toggle v0.2.7's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
[Email] client quit instead of close

Signed-off-by: Vishal Rana <[email protected]>

0.2.6

Toggle 0.2.6's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
[Email] Fixed empty body

Signed-off-by: Vishal Rana <[email protected]>

0.2.5

Toggle 0.2.5's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
[Email] Text to BodyText & HTML to BodyHTML

Signed-off-by: Vishal Rana <[email protected]>