diff options
| author | Shulhan <ms@kilabit.info> | 2022-08-21 15:31:35 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-08-21 15:31:35 +0700 |
| commit | 767a4d54da5ea2b16b84df7d8f49c61f6ccb5753 (patch) | |
| tree | e8d838448400d156b77e1ab0a0d1dd1c7700a24e /attack_result.go | |
| parent | e552bc26165e4413390c329113acd95abc6c78e5 (diff) | |
| download | gorankusu-767a4d54da5ea2b16b84df7d8f49c61f6ccb5753.tar.xz | |
all: remove trailing new line on each mlog format
The mlog functions automatically add new line to each format, so we
did not need to add it manually.
Diffstat (limited to 'attack_result.go')
| -rw-r--r-- | attack_result.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/attack_result.go b/attack_result.go index 856051b..26f1a9d 100644 --- a/attack_result.go +++ b/attack_result.go @@ -99,14 +99,14 @@ func (ar *AttackResult) cancel() { if ar.fout != nil { err := ar.fout.Close() if err != nil { - mlog.Errf("AttackResult.cancel %s: %s\n", ar.HttpTargetID, err) + mlog.Errf(`AttackResult.cancel %s: %s`, ar.HttpTargetID, err) } ar.fout = nil if len(ar.fullpath) > 0 { err = os.Remove(ar.fullpath) if err != nil { - mlog.Errf("AttackResult.cancel %s: %s\n", ar.HttpTargetID, err) + mlog.Errf(`AttackResult.cancel %s: %s`, ar.HttpTargetID, err) } } } |
