summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--context_mirror_bot.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/context_mirror_bot.ml b/context_mirror_bot.ml
index c02c943..9c0fc97 100644
--- a/context_mirror_bot.ml
+++ b/context_mirror_bot.ml
@@ -194,7 +194,7 @@ let msg ?lev:(lev=0) str =
let err str =
Printf.eprintf "[bot %s: error] %s\n%!" (timestamp ()) str
-let logger = Syslog.openlog Sys.argv.(0);;
+let logger = Filename.basename Sys.argv.(0) |> Syslog.openlog ;;
let log_info msg =
Syslog.syslog logger `LOG_INFO msg